[InstCombine] allow bitcast to/from FP for vector insert/extract transform
authorSanjay Patel <spatel@rotateright.com>
Thu, 4 Oct 2018 16:25:05 +0000 (16:25 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 4 Oct 2018 16:25:05 +0000 (16:25 +0000)
commit3746e11abedb8dbe017a6dc038944bf35ab5bd29
tree82d996de8fd3f7b697b758723db28abe90619cbf
parenta4c17dd7f38a6c9ef2199d9ee5384c0af37a2d9e
[InstCombine] allow bitcast to/from FP for vector insert/extract transform

This is a follow-up to rL343482 / D52439.
This was a pattern that initially caused the commit to be reverted because
the transform requires a bitcast as shown here.

llvm-svn: 343794
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll
llvm/test/Transforms/InstCombine/extractelement.ll