diff options
author | Philip Reames <preames@rivosinc.com> | 2022-10-06 15:12:37 -0700 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2022-10-06 15:18:43 -0700 |
commit | 79f0413e5e3cc775d0c116b66e3ff7fb82f1ee54 (patch) | |
tree | e426e0711f62b1f1ffb5589e421b8e4968157566 /llvm/lib/Support/SmallVector.cpp | |
parent | 027516553da4d380a9a7ea673342dba61318cc47 (diff) | |
download | llvm-79f0413e5e3cc775d0c116b66e3ff7fb82f1ee54.zip llvm-79f0413e5e3cc775d0c116b66e3ff7fb82f1ee54.tar.gz llvm-79f0413e5e3cc775d0c116b66e3ff7fb82f1ee54.tar.bz2 |
[RISCV] Use branchless form for selects with -1 in either arm
We can lower these as an or with the negative of the condition value. This appears to result in significantly less branch-y code on multiple common idioms (as seen in tests).
Differential Revision: https://reviews.llvm.org/D135316
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions