[Bug tree-optimization/87188] Function pointer canonicalization optimized away
dave.anglin at bell dot net
gcc-bugzilla@gcc.gnu.org
Thu Sep 6 11:58:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188
--- Comment #16 from dave.anglin at bell dot net ---
On 2018-09-05 7:38 PM, dave.anglin at bell dot net wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188
>
> --- Comment #15 from dave.anglin at bell dot net ---
> On 2018-09-05 7:21 PM, dave.anglin at bell dot net wrote:
>> Doing a "&" operation on a function pointer looks bad.
> No, I misread this line "_12 = SR.13_1 == operator!=;". It looks like
> an expand problem.
We only get canonicalization of function pointers when we expand using
do_compare_and_jump().
In the ifcombine pass, we transform the operation to "_12 = SR.13_1 ==
operator!=;". I believe this
expands to one of the scc patterns without canonicalization.
More information about the Gcc-bugs
mailing list