[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2019-04-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 Richard Biener changed: What|Removed |Added Depends on|82177 |65752 --- Comment #6 from Richard

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2018-01-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 Bug 82282 depends on bug 82177, which changed state. Bug 82177 Summary: Alias analysis too aggressive with integer-to-pointer cast https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82177 What|Removed |Added

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2017-09-22 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 --- Comment #5 from rguenther at suse dot de --- On Fri, 22 Sep 2017, nunoplopes at sapo dot pt wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 > > --- Comment #4 from Nuno Lopes --- > There are two major transformations going on:

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2017-09-22 Thread nunoplopes at sapo dot pt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 --- Comment #4 from Nuno Lopes --- There are two major transformations going on: if (u != v) { v = u; } => v = u (with v, u integers) and: glb = (int*)(uinptr_t)foo) => glb = foo Doing both triggers the end-to-end

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2017-09-22 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 --- Comment #3 from rguenther at suse dot de --- On Fri, 22 Sep 2017, nunoplopes at sapo dot pt wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 > > --- Comment #2 from Nuno Lopes --- > This is different from PR82177. That bug is

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2017-09-22 Thread nunoplopes at sapo dot pt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 --- Comment #2 from Nuno Lopes --- This is different from PR82177. That bug is in AA, this one is not. See the C source: uintptr_t u = (uintptr_t) (x + 1); uintptr_t v = (uintptr_t) y; // if b1 true, then b2 must be true as well int b1

[Bug tree-optimization/82282] PRE cannot blindly fold integer-to-pointer/pointer-to-integer round-trips

2017-09-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82282 Richard Biener changed: What|Removed |Added Depends on||82177 --- Comment #1 from Richard