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:
8b91c77
)
generate chain result
author
Andrew Lenharth
<andrewl@lenharth.org>
Fri, 11 Nov 2005 23:02:55 +0000
(23:02 +0000)
committer
Andrew Lenharth
<andrewl@lenharth.org>
Fri, 11 Nov 2005 23:02:55 +0000
(23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24307
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Alpha/AlphaISelPattern.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Alpha/AlphaISelPattern.cpp
b/lib/Target/Alpha/AlphaISelPattern.cpp
index 3218f03d6394562797603bd64aeb35b39c7bbf5f..ec3479d15f5eedcba26263ecfef1498c15e8e5b4 100644
(file)
--- a/
lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/
lib/Target/Alpha/AlphaISelPattern.cpp
@@
-551,6
+551,11
@@
unsigned AlphaISel::SelectExpr(SDOperand N) {
case ISD::READCYCLECOUNTER:
Select(N.getOperand(0)); //Select chain
+ if (Result != notIn)
+ ExprMap[N.getValue(1)] = notIn; // Generate the token
+ else
+ Result = ExprMap[N.getValue(0)] = MakeReg(N.getValue(0).getValueType());
+
BuildMI(BB, Alpha::RPCC, 1, Result).addReg(Alpha::R31);
return Result;