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)
commite2239ff3eb5ddfe063f152c6238aab5c049662e0
tree5faebf6d25f0130f25fe464c56f17e3093d11de9
parent4e13a61413e83dafc5c4c3675c9f2bbdade1dcb7
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.

llvm-svn: 214177
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/CodeGenPrepare/AArch64/trunc-weird-user.ll [new file with mode: 0644]