[llvm] [LV][NFC] Refactor code for extracting first active element (PR #131118)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 07:24:37 PDT 2025
================
@@ -461,6 +461,11 @@ Value *VPInstruction::generate(VPTransformState &State) {
Value *A = State.get(getOperand(0));
return Builder.CreateNot(A, Name);
}
+ case Instruction::ExtractElement: {
+ Value *Vec = State.get(getOperand(0));
+ Value *Idx = State.get(getOperand(1), true);
----------------
fhahn wrote:
ExtractElement should also be handled in onlyFirstLaneUsed?
https://github.com/llvm/llvm-project/pull/131118
More information about the llvm-commits
mailing list