[llvm] [AssumptionCache] Fix removeAffectedValues() when value is repeated in AssumeInst (PR #205275)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 08:37:02 PDT 2026


================
@@ -129,12 +145,21 @@ void AssumptionCache::removeAffectedValues(AssumeInst *CI) {
       if (Elem.Assume == CI) {
----------------
rdevshp wrote:

Why not simply change this line to `if (Elem.Assume == CI && Elem.Index == AV.Index) {` instead?

https://github.com/llvm/llvm-project/pull/205275


More information about the llvm-commits mailing list