[PATCH] D154565: [InstCombine] Fold icmps comparing uadd_sat with a constant
Dhruv Chawla via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 7 22:36:47 PDT 2023
0xdc03 marked 3 inline comments as done.
0xdc03 added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3643
+ // evaluates to true. For the LHS, this means the exact inverse of the range
+ // of values of the above.
+ ConstantRange C1 = ConstantRange::makeExactNoWrapRegion(
----------------
nikic wrote:
> I feel like this comment is largely redundant with the one above...
Sure, that was mainly for me to understand what I had done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154565/new/
https://reviews.llvm.org/D154565
More information about the llvm-commits
mailing list