[llvm] [LV][EVL] Support icmp/fcmp instruction with EVL-vectorization (PR #108533)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 07:39:45 PDT 2024
================
@@ -1456,38 +1456,60 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
void VPWidenEVLRecipe::execute(VPTransformState &State) {
unsigned Opcode = getOpcode();
- // TODO: Support other opcodes
- if (!Instruction::isBinaryOp(Opcode) && !Instruction::isUnaryOp(Opcode))
- llvm_unreachable("Unsupported opcode in VPWidenEVLRecipe::execute");
+ if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) {
----------------
alexey-bataev wrote:
Shall we instead represent it as WPWidentIntrisic?
https://github.com/llvm/llvm-project/pull/108533
More information about the llvm-commits
mailing list