[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2023-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2023-05-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 --- Comment #4 from Andrew Pinski --- Hmm: # RANGE [irange] long unsigned int [0, 2305843009213693951][16140901064495857664, +INF] iftmp.0_7 = (long unsigned intD.10) _19; if (iftmp.0_7 > 2305843009213693951) So that is _19 < 0 If I read

[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2023-04-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 --- Comment #3 from Andrew Pinski --- So a couple of things need to happen really: optimized now: if (p_10 < q_12) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: _3 = _22 - _21; _4 = _3 /[ex] 4; iftmp.0_14 =

[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2017-12-05 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 --- Comment #2 from Marc Glisse --- With POINTER_DIFF_EXPR, things may be easier. One of the things I suggested when introducing it was that VRP could always use a range of [ -PTRDIFF_MAX, PTRDIFF_MAX ] for them. If you had written

[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2017-01-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/79119] absolute value of a pointer difference can be assumed to be less than or equal to PTRDIFF_MAX

2017-01-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79119 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization