mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
unbreak test/Bitcode/shuffle.ll.
llvm-svn: 149033
This commit is contained in:
parent
713c49ff5a
commit
6e8ec90268
@ -787,6 +787,9 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1,
|
||||
// Undefined shuffle mask -> undefined value.
|
||||
if (isa<UndefValue>(Mask)) return UndefValue::get(V1->getType());
|
||||
|
||||
// Don't break the bitcode reader hack.
|
||||
if (isa<ConstantExpr>(Mask)) return 0;
|
||||
|
||||
unsigned MaskNumElts = Mask->getType()->getVectorNumElements();
|
||||
unsigned SrcNumElts = V1->getType()->getVectorNumElements();
|
||||
Type *EltTy = V1->getType()->getVectorElementType();
|
||||
|
Loading…
Reference in New Issue
Block a user