[X86] Update MaxIndex test in x86-cmov-converter.ll to return the index and not use...
authorCraig Topper <craig.topper@gmail.com>
Sat, 4 Jan 2020 07:58:43 +0000 (23:58 -0800)
committerCraig Topper <craig.topper@gmail.com>
Sat, 4 Jan 2020 07:59:54 +0000 (23:59 -0800)
commit2306f43ccb46627b92aa0bb48b96437984c50c01
tree71954e895544b785b8d617bc51528aa8f37f4083
parented5fe64581f4f076c00d5e57caff1ff746d57c79
[X86] Update MaxIndex test in x86-cmov-converter.ll to return the index and not use the index to look up the array after the loop.

This represents a more realistic version of the code being tested.
The cmov converter doesn't look at the code after the loop so
it doesn't matter for what's being tested.

But as noted in this twitter thread https://twitter.com/trav_downs/status/1213311159413161987
gcc can turn the previous MaxIndex code into the MaxValue code. So
returning the index makes it a distinct case.
llvm/test/CodeGen/X86/x86-cmov-converter.ll