[PATCH] D118907: [TypePromotion] Allow SExtInst as sink
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 3 07:12:49 PST 2022
samparker created this revision.
samparker added reviewers: dmgreen, avieira, adriantong1024, craig.topper.
Herald added subscribers: hiraditya, kristof.beyls.
samparker requested review of this revision.
Herald added a project: LLVM.
If these instructions are in the tree, then they're almost certainly going to need a sign extend anyway, so having a trunc in the IR to handle them shouldn't cause any harm. I also noticed some significantly better codegen when targeting arm on one of the IR tests.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118907
Files:
llvm/lib/CodeGen/TypePromotion.cpp
llvm/test/Transforms/TypePromotion/ARM/casts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118907.405631.patch
Type: text/x-patch
Size: 6751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220203/74bfad0d/attachment.bin>
More information about the llvm-commits
mailing list