CodeGenPrep: fall back to MVT::Other if instruction's type isn't an EVT.
authorTim Northover <tnorthover@apple.com>
Tue, 29 Jul 2014 10:20:22 +0000 (10:20 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 29 Jul 2014 10:20:22 +0000 (10:20 +0000)
commit6f800f7333575312c9885bd14f1a6675130d8d81
tree94c6214569f1046a17bc5be6b0f896b5f8e89a71
parent30ef915bb4fdcc815c673819563bf0e487367557
CodeGenPrep: fall back to MVT::Other if instruction's type isn't an EVT.

The test being performed is just an approximation anyway, so it really
shouldn't crash when things don't go entirely as expected.

Should fix PR20474.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg [new file with mode: 0644]
test/Transforms/CodeGenPrepare/AArch64/trunc-weird-user.ll [new file with mode: 0644]