projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a23ccfb
)
Do not use the type of the RHS constant to determine the type of the operation.
author
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jan 2005 05:22:07 +0000
(
05:22
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jan 2005 05:22:07 +0000
(
05:22
+0000)
This fails for shifts because the constant is always 8 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19508
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelPattern.cpp
b/lib/Target/X86/X86ISelPattern.cpp
index 35796e9e60f50c2ff08e5c96a9e9d2e4e1526098..a796045c5b50466a289b7f76b4eb2cdadaaf6f37 100644
(file)
--- a/
lib/Target/X86/X86ISelPattern.cpp
+++ b/
lib/Target/X86/X86ISelPattern.cpp
@@
-2271,7
+2271,7
@@
void ISel::Select(SDOperand N) {
SDOperand Op0 = Op.getOperand(0);
SDOperand Op1 = Op.getOperand(1);
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op1)) {
- switch (
CN->getValueType(0)) {
+ switch (
Op0.getValueType()) { // Use Op0's type because of shifts.
default: break;
case MVT::i1:
case MVT::i8: Opc = TabPtr[0]; break;