OSDN Git Service

[LSV] Don't assume that bitcast ops are Instructions.
authorJustin Lebar <jlebar@google.com>
Wed, 27 Jul 2016 21:45:48 +0000 (21:45 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 27 Jul 2016 21:45:48 +0000 (21:45 +0000)
commitd4f04da5fef55fbb64a3c0d98f77fdc950e15400
tree1cbf804a1891374b5caa5f4b37db6113609c8579
parentca740c1356fc3c006f6c81db0b82671778c2c31f
[LSV] Don't assume that bitcast ops are Instructions.

Summary:
When we ask the builder to create a bitcast on a constant, we get back a
constant, not an instruction.

Reviewers: asbirlea

Subscribers: jholewinski, mzolotukhin, llvm-commits, arsenm

Differential Revision: https://reviews.llvm.org/D22878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
test/Transforms/LoadStoreVectorizer/NVPTX/non-instr-bitcast.ll [new file with mode: 0644]