aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-01-28 12:14:43 -0800
committerKazu Hirata <kazu@google.com>2023-01-28 12:14:43 -0800
commit6f15919d986d671be084eb4edce21ef76301808d (patch)
tree8f39dfcc0a8d29da1158ae3ecf33cceb3d7d7b6d /clang/lib/Basic/SourceManager.cpp
parente67f849001bb890f86831ab31c1bb25e0882e711 (diff)
downloadllvm-6f15919d986d671be084eb4edce21ef76301808d.zip
llvm-6f15919d986d671be084eb4edce21ef76301808d.tar.gz
llvm-6f15919d986d671be084eb4edce21ef76301808d.tar.bz2
[RISCV] Simplify predicates with llvm::countr_zero (NFC)
It takes less code (in C++ and the host assembly) to get rid of the trailing zeros and compare against {3,5,9} than divide the immediate by {3,5,9} and check to see if we have a power of 2.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions