diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-08-16 14:08:38 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-08-16 14:11:31 -0700 |
commit | de6fd169715764f0401d8580b64c11fda45101e1 (patch) | |
tree | 2466937498af8be23e6740b08a1b66610fe6aaf4 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp | |
parent | 1180ed41ee9de1804ddbfee4e6306dd20d12cd2b (diff) | |
download | llvm-de6fd169715764f0401d8580b64c11fda45101e1.zip llvm-de6fd169715764f0401d8580b64c11fda45101e1.tar.gz llvm-de6fd169715764f0401d8580b64c11fda45101e1.tar.bz2 |
[RISCV] Don't fold (sub C, (setcc x, y, eq/neq)) -> (add C-1, (setcc x, y, neq/eq)) if C-1 isn't simm12.
We still need to materialize the constant in a register and we
may not be removing all uses of the original constant so it may
increase code size.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions