[PATCH] D98449: [RISCV] Add isel-patterns to optimize (a < 1) into bgez
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 08:28:42 PST 2021
frasercrmck added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:1001
+def : Pat<(brcond (XLenVT (setlt GPR:$lhs, 1)), bb:$imm12),
+ (BGE X0, GPR:$lhs, bb:$imm12)>;
----------------
Indentation looks a little off here. Everything else seems to have aligned the to and from.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98449/new/
https://reviews.llvm.org/D98449
More information about the llvm-commits
mailing list