aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-08-16 14:04:19 -0700
committerCraig Topper <craig.topper@sifive.com>2022-08-16 14:08:42 -0700
commit1180ed41ee9de1804ddbfee4e6306dd20d12cd2b (patch)
tree9aa3fee19a16ce8c8e18e5313f638751175c8d28 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent4854fa217f4b241e0782bbea68d090e00ec245f6 (diff)
downloadllvm-1180ed41ee9de1804ddbfee4e6306dd20d12cd2b.zip
llvm-1180ed41ee9de1804ddbfee4e6306dd20d12cd2b.tar.gz
llvm-1180ed41ee9de1804ddbfee4e6306dd20d12cd2b.tar.bz2
[RISCV] Add more test cases for (sub C, (setcc x, y, eq/neq)) -> (add C-1, (setcc x, y, neq/eq)). NFC
In these test cases we do the transform, but the immediate is too large to form an ADDI so it didn't save any instructions. If the constant is opaque or has additional users we shouldn't do the transform if it doesn't form an ADDI.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions