aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-04-02 11:36:01 +0100
committerJay Foad <jay.foad@amd.com>2020-05-14 16:36:22 +0100
commit17941437a2ed8abefef719345391da94e6df8ebb (patch)
treecc42f885414beca63d1cfd152bee9e7821af3a95 /clang/lib/Basic/SourceManager.cpp
parent0c5db3e4aa197bab6e4d9f8c02ca0edf4fa9dce3 (diff)
downloadllvm-17941437a2ed8abefef719345391da94e6df8ebb.zip
llvm-17941437a2ed8abefef719345391da94e6df8ebb.tar.gz
llvm-17941437a2ed8abefef719345391da94e6df8ebb.tar.bz2
[TargetLowering] Improve expansion of FSHL/FSHR
Use an extra shift-by-1 instead of a compare and select to handle the shift-by-zero case. This sometimes saves one instruction (if the compare couldn't be combined with a previous instruction). It also works better on targets that don't have good select instructions. Note that currently this change doesn't affect most targets because expandFunnelShift is not used because funnel shift intrinsics are lowered early in SelectionDAGBuilder. But there is work afoot to change that; see D77152. Differential Revision: https://reviews.llvm.org/D77301
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions