[PATCH] D108091: [AggressiveInstCombine] Add shift left instruction to `TruncInstCombine` DAG
Anton Afanasyev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 15 10:39:30 PDT 2021
anton-afanasyev created this revision.
anton-afanasyev added reviewers: lebedev.ri, RKSimon, spatel.
Herald added a subscriber: hiraditya.
anton-afanasyev requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Add `shl` instruction to the DAG post-dominated by `trunc`, allowing
TruncInstCombine to reduce bitwidth of expressions containing left shifts.
Part of https://reviews.llvm.org/D107766
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108091
Files:
llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
llvm/test/Transforms/AggressiveInstCombine/trunc_shifts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108091.366511.patch
Type: text/x-patch
Size: 6929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210815/e64a5285/attachment.bin>
More information about the llvm-commits
mailing list