[PATCH] D57686: [ARM CGP] Fix ConvertTruncs

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 4 06:30:59 PST 2019


samparker created this revision.
samparker added a reviewer: SjoerdMeijer.
Herald added subscribers: kristof.beyls, javed.absar.

ConvertTruncs is used to replace a trunc for an AND mask, however this function wasn't working as expected. By performing the change later, we can create a wide type integer mask instead of a narrow -1 value, which could then be simply removed (incorrectly). Because we now perform this action later, it's necessary to cache the trunc type before we perform the promotion.


https://reviews.llvm.org/D57686

Files:
  lib/Target/ARM/ARMCodeGenPrepare.cpp
  test/CodeGen/ARM/CGP/arm-cgp-calls.ll
  test/CodeGen/ARM/CGP/arm-cgp-casts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57686.185039.patch
Type: text/x-patch
Size: 3841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190204/8d4ec02d/attachment.bin>


More information about the llvm-commits mailing list