diff options
author | Nikita Popov <npopov@redhat.com> | 2023-12-01 15:52:06 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-12-01 15:55:27 +0100 |
commit | b92693ac6afc522ea56bede0b9805ca7c138754c (patch) | |
tree | b54885daf8c927e35b3189e31ebc92a3e3c9ba16 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | dd5c5349e1f3b495789a9f67e579121da3722db6 (diff) | |
download | llvm-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