[PATCH] D24681: Optimize patterns of vectorized interleaved memory accesses for X86.
Michael Kuperstein via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 09:37:10 PDT 2016
mkuper added a comment.
Hi Farhana,
I'm not sure I see the problem.
opt already depends on both CodeGen and all-targets, and we already have opt-based tests for IR-to-IR passes that live in CodeGen. For example, you can find tests for AtomicExpandPass in test/Transforms/AtomicExtend
Note that for target-specific tests you need to create a subdirectory (within the pass' test directory) for that target, which contains a lit.local.cfg file that requires this target. Otherwise you'll get errors in configurations where this target is not compiled in.
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.
And I would prefer these tests to go in in the same commit - it will make it easier to make sure we don't have any surprises in the IR this produces.
https://reviews.llvm.org/D24681
More information about the llvm-commits
mailing list