[PATCH] D140869: [TypePromotion] Add truncate in ConvertTruncs when the original truncate type is not extend type

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 2 21:07:57 PST 2023


bcl5980 created this revision.
bcl5980 added reviewers: samparker, avieira, samtebbs, nikic.
Herald added a subscriber: hiraditya.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If the src type is not extend type, after convert the truncate to and we need to truncate the and also to make sure the all user is legal.

Fix: #59554


https://reviews.llvm.org/D140869

Files:
  llvm/lib/CodeGen/TypePromotion.cpp
  llvm/test/Transforms/TypePromotion/AArch64/pr58843.ll
  llvm/test/Transforms/TypePromotion/AArch64/trunc-zext-chain.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140869.485915.patch
Type: text/x-patch
Size: 3910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230103/bc1f4cfc/attachment.bin>


More information about the llvm-commits mailing list