[PATCH] D103150: [ARM] Ensure instructions are simplified prior to GatherScatter lowering.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 03:32:27 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: samtebbs, SjoerdMeijer, ostannard, simon_tatham.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Surprisingly, not all instructions are always simplified after unrolling and before MVE gather/scatter lowering. Notably dead gather operations can be left around which cause the gather/scatter lowering pass to crash after if there are multiple gathers, some of which are dead.

This can change some of the existing tests, including making them no-longer test what they originally tested. This uses a combination of disabling the gather/scatter lowering pass and adjusting the test to keep them as before.


https://reviews.llvm.org/D103150

Files:
  llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/remat-vctp.ll
  llvm/test/CodeGen/Thumb2/lsll0.ll
  llvm/test/CodeGen/Thumb2/mve-gather-scatter-optimisation.ll
  llvm/test/CodeGen/Thumb2/mve-gather-unused.ll
  llvm/test/CodeGen/Thumb2/mve-phireg.ll
  llvm/test/CodeGen/Thumb2/mve-pred-xor.ll
  llvm/test/CodeGen/Thumb2/mve-selectcc.ll
  llvm/test/CodeGen/Thumb2/mve-vqdmulh.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103150.347880.patch
Type: text/x-patch
Size: 13962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210526/788d2dec/attachment.bin>


More information about the llvm-commits mailing list