[llvm] [LV][NFC] Refactor code for extracting first active element (PR #131118)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 14 01:08:15 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);
----------------
david-arm wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/131118
More information about the llvm-commits
mailing list