[PATCH] D137949: [RISCV] Branchless lowering for select (x < 0), TrueConstant, FalseConstant)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 18:48:19 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:9639
+ // register.
+ if (isInt<12>((uint64_t)TrueSImm) && isInt<12>((uint64_t)FalseSImm) &&
+ isInt<12>((uint64_t)FalseSImm - (uint64_t)TrueSImm)) {
----------------
liaolucy wrote:
> reames wrote:
> > You shouldn't need these casts.
> Is it open to all constants? There will be some code size increase
I think he was referring to the casts to uint64_t inside the isInt calls.. isInt takes a int64_t.
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