[PATCH] D31782: [CodeGenPrepare]Skip sext promotion if operands for multiple users is detected

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 11:59:24 PDT 2017


junbuml created this revision.
Herald added a subscriber: mcrosier.
Herald added a reviewer: javed.absar.

Do not allow address type promtion if detecting an instruction which has multiple users in the middle of promotion. In such case, ISel could lose opportunities to fold the extension as part of address modes. The  added test case should show the case.


https://reviews.llvm.org/D31782

Files:
  lib/CodeGen/CodeGenPrepare.cpp
  test/CodeGen/AArch64/arm64-addr-type-promotion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31782.94411.patch
Type: text/x-patch
Size: 5909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170406/16f328e9/attachment.bin>


More information about the llvm-commits mailing list