[llvm] [LV][EVL] Support icmp/fcmp instruction with EVL-vectorization (PR #108533)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 03:56:39 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) {
----------------
LiqinWeng wrote:
pls see: https://github.com/llvm/llvm-project/pull/114205/files
https://github.com/llvm/llvm-project/pull/108533
More information about the llvm-commits
mailing list