projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
67bb760
)
Eliminate ConstantFoldShiftInstruction reference
author
Chris Lattner
<sabre@nondot.org>
Mon, 12 Jan 2004 20:40:42 +0000
(20:40 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 12 Jan 2004 20:40:42 +0000
(20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10801
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index 0e30c3ee587be6b91fa1a7d087d6ecde25e9ce72..c1aa39db1c18d467028db119e99761a9c95ad146 100644
(file)
--- a/
lib/VMCore/Constants.cpp
+++ b/
lib/VMCore/Constants.cpp
@@
-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 = ConstantFold
Shift
Instruction(Opcode, C1, C2))
+ if (Constant *FC = ConstantFold
Binary
Instruction(Opcode, C1, C2))
return FC; // Fold a few common cases...
// Look up the constant in the table first to ensure uniqueness