[PATCH] D137949: [RISCV] Branchless lowering for select (x < 0), TrueConstant, FalseConstant)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 21:44:11 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:9630
+ // select (x < 0), y, z -> x >> (XLEN - 1) & (y - z) + z
+ auto *C = dyn_cast<ConstantSDNode>(RHS);
----------------
What about (x > -1), z, y?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137949/new/
https://reviews.llvm.org/D137949
More information about the llvm-commits
mailing list