[llvm] [LV][EVL] Support icmp/fcmp instruction with EVL-vectorization (PR #108533)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 02:05:14 PDT 2024
================
@@ -1406,6 +1406,30 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
void VPWidenEVLRecipe::execute(VPTransformState &State) {
unsigned Opcode = getOpcode();
// TODO: Support other opcodes
+ if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) {
+ Value *Op1 = State.get(getOperand(0), 0);
+ Value *Op2 = State.get(getOperand(1), 0);
----------------
Mel-Chen wrote:
Could we drop the 0?
https://github.com/llvm/llvm-project/pull/108533
More information about the llvm-commits
mailing list