aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorAnton Afanasyev <anton.a.afanasyev@gmail.com>2021-08-12 14:51:57 +0300
committerAnton Afanasyev <anton.a.afanasyev@gmail.com>2021-08-17 12:44:37 +0300
commit1f3e35b6d165715ec7bf7ba80d5b982719c7752a (patch)
treef25b5ab0f880fb627b30e45bb1b435c317b0d38a /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent8f8f9260a95f784e8c4620d652986724ac1b88df (diff)
downloadllvm-1f3e35b6d165715ec7bf7ba80d5b982719c7752a.zip
llvm-1f3e35b6d165715ec7bf7ba80d5b982719c7752a.tar.gz
llvm-1f3e35b6d165715ec7bf7ba80d5b982719c7752a.tar.bz2
[AggressiveInstCombine] Add shift left instruction to `TruncInstCombine` DAG
Add `shl` instruction to the DAG post-dominated by `trunc`, allowing TruncInstCombine to reduce bitwidth of expressions containing left shifts. The only thing we need to check is that the target bitwidth must be wider than the maximal shift amount: https://alive2.llvm.org/ce/z/AwArqu Part of https://reviews.llvm.org/D107766 Differential Revision: https://reviews.llvm.org/D108091
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions