[llvm] [LV] Use frozen start value for FindLastIV if needed. (PR #132691)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 14:27:14 PDT 2025


================
@@ -474,6 +475,12 @@ Value *VPInstruction::generate(VPTransformState &State) {
     Value *Idx = State.get(getOperand(1), /*IsScalar=*/true);
     return Builder.CreateExtractElement(Vec, Idx, Name);
   }
+  case Instruction::Freeze: {
+    if (State.hasVectorValue(this))
+      return State.get(this);
----------------
fhahn wrote:

The check was left over from earlier version, removed, thanks

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


More information about the llvm-commits mailing list