https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78255
--- Comment #9 from Jeffrey A. Law <law at redhat dot com> --- Also note that on some targets indirect calls have a different ABI than calls to named function. SO changing between direct and indirect calls is strictly forbidden on some targets. I suspect there's some magic we need to replicate in postreload-gcse from cse/gcse/combine to prevent this from occurring unnecessarily.