[llvm-branch-commits] [llvm] ValueTracking: Use SimplifyQuery for computeConstantRange (PR #191726)
Yingwei Zheng via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Apr 12 09:29:34 PDT 2026
================
@@ -5836,7 +5836,9 @@ findContiguousCases(Value *Condition, SmallVectorImpl<ConstantInt *> &Cases,
/*OtherCases=*/&OtherCases,
};
}
- ConstantRange CR = computeConstantRange(Condition, /*ForSigned=*/false);
+ ConstantRange CR = computeConstantRange(
+ Condition, /*ForSigned=*/false,
+ SimplifyQuery(Dest->getParent()->getParent()->getDataLayout()));
----------------
dtcxzyw wrote:
```suggestion
SimplifyQuery(Dest->getDataLayout()));
```
Use `BasicBlock::getDataLayout`
https://github.com/llvm/llvm-project/pull/191726
More information about the llvm-branch-commits
mailing list