[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Nov 11 15:03:07 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.181 -> 1.182
---
Log message:
generate chain result
---
Diffs of the changes: (+5 -0)
AlphaISelPattern.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.181 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.182
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.181 Fri Nov 11 13:52:25 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Fri Nov 11 17:02:55 2005
@@ -551,6 +551,11 @@
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;
More information about the llvm-commits
mailing list