[PATCH] D130164: [LV] Support predicated div/rem operations via safe-divisor select idiom
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 29 07:46:24 PDT 2022
fhahn added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.h:948
+/// VPWidenDivRemRecipe is a recipe for widening a div or rem instruction
+/// with a appropriate select to ensure the RHS can not fault.
----------------
Is a new recipe needed here? Would it be possible to generate a `VPWidenSelectRecipe`/ `VPInstruction` with an `Instruction::Select` opcode feeding the `VPWidenRecipe` for the `div/rem` instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130164/new/
https://reviews.llvm.org/D130164
More information about the llvm-commits
mailing list