[llvm] [VPlan] Add specialized VPValue subclasses for different types (NFC) (PR #172758)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 6 13:31:16 PST 2026


================
@@ -537,9 +537,9 @@ Value *VPInstruction::generate(VPTransformState &State) {
   }
   case Instruction::ExtractElement: {
     assert(State.VF.isVector() && "Only extract elements from vectors");
-    if (getOperand(1)->isLiveIn()) {
+    if (auto *IdxLI = dyn_cast<VPIRValue>(getOperand(1))) {
----------------
fhahn wrote:

done thanks

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


More information about the llvm-commits mailing list