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:
d394811
)
Do not give token factor nodes outrageous weights
author
Chris Lattner
<sabre@nondot.org>
Mon, 17 Jan 2005 22:56:09 +0000
(22:56 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 17 Jan 2005 22:56:09 +0000
(22:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19645
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 b7c9cfe9f2c2ccd578bd34bcb98b3cc817e55320..a75854e5592787c1953ec46fcf45f3c1523393c1 100644
(file)
--- a/
lib/Target/X86/X86ISelPattern.cpp
+++ b/
lib/Target/X86/X86ISelPattern.cpp
@@
-453,8
+453,11
@@
unsigned ISel::ComputeRegPressure(SDOperand O) {
++NumExtraMaxRegUsers;
}
}
-
- Result = MaxRegUse+NumExtraMaxRegUsers;
+
+ if (O.getOpcode() != ISD::TokenFactor)
+ Result = MaxRegUse+NumExtraMaxRegUsers;
+ else
+ Result = std::max(MaxRegUse-1, 1);
}
//std::cerr << " WEIGHT: " << Result << " "; N->dump(); std::cerr << "\n";