annamthomas

Results comments of annamthomas

We are vectorizing past the actual number of elements. The fix is to vectorize to TripCount - Step, and rely on the scalar loop to handle the remaining iterations correctly.

> > > > > > A quick solution would be that of removing the successor BB once that > > > becomes unreachable to avoid these issues, but I'm...

> A quick solution would be that of removing the successor BB once that > becomes unreachable to avoid these issues, but I'm suspecting we have a > deeper problem...

I think the proposed fix maybe hiding the real problem. The `processBlock` is called for every basic block in the function. If a block is trivially dead (i.e. no predecessor...

> The reason why `DontDeleteUselessPHI` exists, at least from what I can see, > is that SimplifyCFG caches PHI nodes and then looks at them again after > calling removePredecessor(),...

Fix up for review: https://reviews.llvm.org/D34162 For completeness, confirmed that with the fix, the code produces the correct result. The result with versus without instcombine is 24 (which is correct on...

just FYI: without this change, there's no assertion failure, but the code generated is *incorrect*. It is triggering exactly the miscompile fixed by r298845. The issue is that in some...

The LVI assertion is just a side effect of dominator information being incorrect. Narrowed it down to an IR which fails IR verifier when run with instcombine: opt -instcombine test.ll...

> Anna, the first patch is here > llvm/llvm-project#33264 > > I'd love to get this included in 5.0 (otherwise the Rust folks will have to > carry local patches...