aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2022-10-06 15:12:37 -0700
committerPhilip Reames <listmail@philipreames.com>2022-10-06 15:18:43 -0700
commit79f0413e5e3cc775d0c116b66e3ff7fb82f1ee54 (patch)
treee426e0711f62b1f1ffb5589e421b8e4968157566 /llvm/lib/Support/SmallVector.cpp
parent027516553da4d380a9a7ea673342dba61318cc47 (diff)
downloadllvm-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