mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
[InstCombine] Disable fold from D64285 for non-integer types
llvm-svn: 365959
This commit is contained in:
parent
d38d077cb1
commit
26f1215ef9
@ -542,6 +542,8 @@ static Value *foldSelectICmpLshrAshr(const ICmpInst *IC, Value *TrueVal,
|
||||
ICmpInst::Predicate Pred = IC->getPredicate();
|
||||
Value *CmpLHS = IC->getOperand(0);
|
||||
Value *CmpRHS = IC->getOperand(1);
|
||||
if (!CmpRHS->getType()->isIntOrIntVectorTy())
|
||||
return nullptr;
|
||||
|
||||
Value *X, *Y;
|
||||
unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits();
|
||||
|
Loading…
Reference in New Issue
Block a user