[llvm] [SCCP] Relax two-instruction range checks (PR #158495)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 07:54:19 PDT 2025
================
@@ -284,6 +286,54 @@ static Value *simplifyInstruction(SCCPSolver &Solver,
return Sub;
}
+ // Relax range checks.
+ if (auto *ICmp = dyn_cast<ICmpInst>(&Inst)) {
+ Value *X;
+ auto MatchTwoInstructionExactRangeCheck =
----------------
dtcxzyw wrote:
I used to add a common helper in ValueTracking. But I finally decided to duplicate the code because they have different one-use constraints from each other.
https://github.com/llvm/llvm-project/pull/158495
More information about the llvm-commits
mailing list