Skip to content

Commit

Permalink
[ARM/AArch64] Relocate and update InterleavedAccessPass tests (NFC)
Browse files Browse the repository at this point in the history
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/trunk@293309 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mssimpso committed Jan 27, 2017
1 parent 1d8c95f commit 6ea1012
Show file tree
Hide file tree
Showing 10 changed files with 1,407 additions and 1,027 deletions.
86 changes: 0 additions & 86 deletions test/CodeGen/AArch64/aarch64-interleaved-accesses-extract-user.ll

This file was deleted.

Loading

0 comments on commit 6ea1012

Please sign in to comment.