]> granicus.if.org Git - llvm/commit
Merging r293309:
authorHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 19:40:39 +0000 (19:40 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 19:40:39 +0000 (19:40 +0000)
commit5d814fbb8496116a4056cdf0cfa886fc9ee20b52
tree486c35bef63591d2ce7727ad15c47945f8529f8b
parent7fecd41d224948532af0dea28fcda3b44adea5ec
Merging r293309:
------------------------------------------------------------------------
r293309 | mssimpso | 2017-01-27 09:33:16 -0800 (Fri, 27 Jan 2017) | 20 lines

[ARM/AArch64] Relocate and update InterleavedAccessPass tests (NFC)

The interleaved access pass is an IR-to-IR transformation that runs before code
generation. It matches interleaved memory operations to target-specific
intrinsics (that are later lowered to load and store multiple instructions on
ARM/AArch64). We place tests for similar passes (e.g., GlobalMergePass) under
test/Transforms. This patch moves the InterleavedAccessPass tests out of
test/CodeGen and into target-specific directories under
test/Transforms/InterleavedAccess.

Although the pass is an IR pass, many of the existing tests were llc tests
rather opt tests. For example, the tests would check for ldN/stN instructions
generated by llc rather than the intrinsic calls the pass actually inserts.
Thus, this patch updates all tests to be opt tests that check for the inserted
intrinsics. We already have separate CodeGen tests that ensure we lower the
interleaved access intrinsics to their corresponding ldN/stN instructions. In
addition to migrating the tests to opt, this patch also performs some minor
clean-up (to ensure consistent naming, etc.).

Differential Revision: https://reviews.llvm.org/D29184
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@293804 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/aarch64-interleaved-accesses-extract-user.ll [deleted file]
test/CodeGen/AArch64/aarch64-interleaved-accesses.ll [deleted file]
test/CodeGen/ARM/arm-interleaved-accesses-extract-user.ll [deleted file]
test/CodeGen/ARM/arm-interleaved-accesses.ll [deleted file]
test/Transforms/InterleavedAccess/AArch64/interleaved-accesses-extract-user.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/AArch64/interleaved-accesses.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/AArch64/lit.local.cfg [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/interleaved-accesses-extract-user.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/interleaved-accesses.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/lit.local.cfg [new file with mode: 0644]