[Test] Separate IndVars test into AArch64 and X86 parts
authorDmitry Makogon <d.makogon@g.nsu.ru>
Wed, 10 Nov 2021 08:48:56 +0000 (15:48 +0700)
committerDmitry Makogon <d.makogon@g.nsu.ru>
Wed, 10 Nov 2021 09:15:20 +0000 (16:15 +0700)
commit97cb13615d6d9df254e3c0f3deef9eaedfe189b6
tree9cceb8cb04f6586293327b5f4acb05b177609350
parentc0cad9d535e35b8d3d4b3d191a9bae93f8c3440d
[Test] Separate IndVars test into AArch64 and X86 parts

The widen-loop-comp.ll in indvars has a target triple with
specified aarch64 architecture. This caused test failures with
db28934 "[IndVars] Pass TTI to replaceCongruentIVs" applied, because
with the patch indvars performed some target-specific
transforms, and for example if a build supported only X86,
then indvars would not have applied those transforms.
However, the checks in the test were generated as for aarch64.
Thus the test failures on such builds.

This patch separates widen-loop-comp.ll into two parts.
The first one is intended to be run only if a build supports aarch64.
This is now in AArch64 directory with a lit config.

The second one was added recently to show db28934 improvements.
This one is now in X86 directory.

This patch should resolve build issues caused by
5ec23863320ca12bfabb6dcff1d0425cb614b7a5.
llvm/test/Transforms/IndVarSimplify/AArch64/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/IndVarSimplify/AArch64/widen-loop-comp.ll [new file with mode: 0644]
llvm/test/Transforms/IndVarSimplify/X86/eliminate-congruent-ivs.ll [new file with mode: 0644]