[llvm] [VPlan] Add specialized VPValue subclasses for different types (NFC) (PR #172758)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 4 14:05:46 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))) {
----------------
ayalz wrote:
```suggestion
if (auto *IdxIRV = dyn_cast<VPIRValue>(getOperand(1))) {
```
https://github.com/llvm/llvm-project/pull/172758
More information about the llvm-commits
mailing list