[InstCombine][SSE4A] Remove broken INSERTQI range combining optimization
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Oct 2015 14:48:54 +0000 (14:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 13 Oct 2015 14:48:54 +0000 (14:48 +0000)
commit70f1fa1bd898b4ad0ef4ba278335dff8ca335b1c
treec85e31689f53193d3a8c394196d27d8b7902e09d
parent938c3d3164ecf25087e4c7621d4e0da8847f5096
[InstCombine][SSE4A] Remove broken INSERTQI range combining optimization

As discussed in D13348 - the INSERTQI range combining code is wrong in that it confuses the insertion bit index with an extraction bit index.

The remaining legal combines are very unlikely (especially once we've converted to shuffles in D13348) so I'm removing the optimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/x86-sse4a.ll