[llvm] [SLP] NFC. Make InstructionsState more constant. (PR #118609)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 11:38:06 PST 2024


================
@@ -18969,7 +18983,7 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
   if (!S.getOpcode())
     return false;
 
-  Instruction *I0 = cast<Instruction>(S.OpValue);
+  Instruction *I0 = cast<Instruction>(S.getOpValue());
----------------
alexey-bataev wrote:

`auto *I0 = cast<Instruction>(S.getOpValue());`

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


More information about the llvm-commits mailing list