[all-commits] [llvm/llvm-project] 511518: [RISCV] Teach normaliseSetCC to canonicalize X > -...
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Mar 12 11:50:34 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51151828acad6b1e5b0719285ce7172506877fd1
https://github.com/llvm/llvm-project/commit/51151828acad6b1e5b0719285ce7172506877fd1
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-03-12 (Fri, 12 Mar 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/select-cc.ll
Log Message:
-----------
[RISCV] Teach normaliseSetCC to canonicalize X > -1 to X >= 0 and X < 1 to 0 >= X.
This allows the use of BGE with X0 instead of puting -1/1 in a
register.
Reviewed By: jrtc27
Differential Revision: https://reviews.llvm.org/D98542
More information about the All-commits
mailing list