[llvm] [VectorCombine] Enable transform 'scalarizeLoadExtract' for non constant indexes (PR #65445)

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 21:44:25 PDT 2023


================
@@ -1155,9 +1161,6 @@ bool VectorCombine::scalarizeLoadExtract(Instruction &I) {
     if (!UI || UI->getParent() != LI->getParent())
       return false;
 
-    if (!isGuaranteedNotToBePoison(UI->getOperand(1), &AC, LI, &DT))
----------------
benshi001 wrote:

This check will prevent the transform, but will be checked later inside `canScalarizeAccess`, so it is safe to remove.

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


More information about the llvm-commits mailing list