[PATCH] D33262: [JumpThreading] Teach jump threading how to analyze (and (cmp A, C1), (cmp A, C2)) after InstCombine has turned it into (cmp (add A, C3), C4)

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 16:06:08 PDT 2017


reames added a comment.

In https://reviews.llvm.org/D33262#768289, @craig.topper wrote:

> The problem is that LVI knows the value on the edge is within a specific ConstantRange, but the method we call in LVI is getConstantOnEdge which can't return a range.


Our comments interwove here.  :)  I think I came to the same conclusion you did right?


https://reviews.llvm.org/D33262





More information about the llvm-commits mailing list