]> granicus.if.org Git - clang/commit
Make test more resilient to FastIsel changes. NFC.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 2 Oct 2015 15:10:22 +0000 (15:10 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 2 Oct 2015 15:10:22 +0000 (15:10 +0000)
commitba662f9db79a8118cc14b28529ac5883e9e20c56
tree0b15260a3350a13e29e5fc27a80637b0c8b75106
parent775b9abf2ff608653d1c778b903248cdf632423c
Make test more resilient to FastIsel changes. NFC.

Currently FastISel doesn't know how to select vector bitcasts.
During instruction selection, fast-isel always falls back to SelectionDAG
every time it encounters a vector bitcast.
As a consequence of this, all the 'packed vector shift by immedate count'
test cases in avx2-builtins.c are optimized by the DAGCombiner.
In particular, the DAGCombiner would always fold trivial stack loads of
constant shift counts into the operands of packed shift builtins.

This behavior would start changing as soon as I reapply revision 249121.
That revision would teach x86 fast-isel how to select bitcasts between vector
types of the same size.

As a consequence of that change, fast-isel would less often fall back to
SelectionDAG. More importantly, DAGCombiner would no longer be able to
simplify the code by folding the stack reload of a constant.

No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249142 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/avx2-builtins.c