This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/52254] VRP does not fold (~a) & N to a ^ N if a has range [0, N]


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52254

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-16 03:00:22 UTC ---
(In reply to comment #2)
> The combine stage should have access to a valueize() hook as well, to query
> SSA propagator/VNs lattice.  That hook can maybe supply this extra info
> (I wanted to make VRP info persistent for some time, in SSA_NAME_PTR_INFO
> much like we have alignment info there which really is kind of a value-range)

I was thinking about adding that.  Even using nonzero bits to create a simple
range.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]