Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
4616 | Does returning here affect any later combines that could have folded? |
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
4616 | This is the only fold of (A >> AP1) == (B >> AP2) so far, and I think it should be moved here when other same pattern appear. |
llvm/test/Transforms/InstCombine/compare-signs.ll | ||
---|---|---|
62 | Please can add non-uniform vector tests as well? |
llvm/test/Transforms/InstCombine/compare-signs.ll | ||
---|---|---|
80–81 | precommit negative tests here | |
80–81 | undef is allowed |
LGTM - see inline for some possible minor improvements.
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
4608 | "C" in the result is not the same as "C" in the source - update this comment to make the transform clearer? | |
4629 | Do you plan to change this one too? It will be easier to read the code and see the early return if we make a smaller helper function to handle the related patterns. | |
4646 | Another transform that can be updated... |
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
4608 | Sorry - disregard that comment. I misread the transform. This looks fine. |
"C" in the result is not the same as "C" in the source - update this comment to make the transform clearer?