mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Eliminate ConstantFoldShiftInstruction reference
llvm-svn: 10801
This commit is contained in:
parent
2ff33e72ba
commit
b420886171
@ -961,7 +961,7 @@ Constant *ConstantExpr::getShiftTy(const Type *ReqTy, unsigned Opcode,
|
||||
assert(C1->getType()->isIntegral() && C2->getType() == Type::UByteTy &&
|
||||
"Invalid operand types for Shift constant expr!");
|
||||
|
||||
if (Constant *FC = ConstantFoldShiftInstruction(Opcode, C1, C2))
|
||||
if (Constant *FC = ConstantFoldBinaryInstruction(Opcode, C1, C2))
|
||||
return FC; // Fold a few common cases...
|
||||
|
||||
// Look up the constant in the table first to ensure uniqueness
|
||||
|
Loading…
Reference in New Issue
Block a user