aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-12-01 15:52:06 +0100
committerNikita Popov <npopov@redhat.com>2023-12-01 15:55:27 +0100
commitb92693ac6afc522ea56bede0b9805ca7c138754c (patch)
treeb54885daf8c927e35b3189e31ebc92a3e3c9ba16 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentdd5c5349e1f3b495789a9f67e579121da3722db6 (diff)
downloadllvm-b92693ac6afc522ea56bede0b9805ca7c138754c.zip
llvm-b92693ac6afc522ea56bede0b9805ca7c138754c.tar.gz
llvm-b92693ac6afc522ea56bede0b9805ca7c138754c.tar.bz2
[InstCombine] Support inverting lshr with non-negative operand
If the lshr operand is non-negative, we can treat it the same way as an ashr. Ideally we would represent this as "lshr nneg", but for now just perform the necessary ValueTracking query. Proof: https://alive2.llvm.org/ce/z/Ahg4ri
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions