[PATCH] D24681: Optimize patterns of vectorized interleaved memory accesses for X86.

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 14:21:59 PDT 2016


mssimpso added a comment.

In https://reviews.llvm.org/D24681#567421, @mkuper wrote:

> What's more, we already have opt-level tests for this pass, they just live (in my opinion) in the wrong place - see test/CodeGen/AArch64/aarch64-interleaved-accesses-extract-user.ll
>  Matt, am I missing a reason those tests should live in test/CodeGen, or was that an oversight? The test tree doesn't really match the lib tree anyway, and I think the vast majority of IR test live in Transforms, regardless of where the pass is.


No, there's no reason the IR-to-IR tests for InterleavedAccessPass should be under test/CodeGen. In fact, the existing llc tests for ARM and AArch64 in test/Codegen really should be opt tests. When we extended the pass and added extract-user.ll (an opt test), we just added it along side the original tests. This made some sense because the transformation does live under lib/Codegen and is a kind of preparation pass. But you're right, most of the other IR-to-IR codegen pass tests live under Transforms instead (atomic expand, global merge, etc.). The tests should really be under target-specific directories in test/Transforms/InterleavedAccess.


https://reviews.llvm.org/D24681





More information about the llvm-commits mailing list