[PATCH] D68150: [InstCombine] Simplify shift-by-sext to shift-by-zext - ignore use count on sext
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 13:33:43 PDT 2019
lebedev.ri updated this revision to Diff 222236.
lebedev.ri edited the summary of this revision.
lebedev.ri added a comment.
Also perform sudo-CSE to avoid creating numerous `zext`s and leaving them up to the next time EarlyCSE.
This obviously doesn't help with pre-existing `zext`s..
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68150/new/
https://reviews.llvm.org/D68150
Files:
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/shift-by-signext.ll
llvm/test/Transforms/PhaseOrdering/two-shifts-by-sext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68150.222236.patch
Type: text/x-patch
Size: 12043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190927/66415b72/attachment.bin>
More information about the llvm-commits
mailing list