[llvm] [VectorCombine] Fix duplicate freeze scheduling for shared indexes (PR #213461)
Aditya prakash jha via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 1 11:46:41 PDT 2026
================
@@ -2140,9 +2141,11 @@ bool VectorCombine::scalarizeLoadExtract(LoadInst *LI, VectorType *VecTy,
Value *Idx = EI->getIndexOperand();
// Insert 'freeze' for poison indexes.
- auto It = NeedFreeze.find(EI);
- if (It != NeedFreeze.end())
+ auto It = NeedFreeze.find(cast<Instruction>(Idx));
----------------
AdityaOP007 wrote:
Thanks! I'll switch this to dyn_cast and handle the constant index case.
https://github.com/llvm/llvm-project/pull/213461
More information about the llvm-commits
mailing list