mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
cycle counter fix
llvm-svn: 24573
This commit is contained in:
parent
a2a404ff3a
commit
9662af8cdc
@ -1193,6 +1193,12 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain
|
||||
if (Tmp1 != Node->getOperand(0))
|
||||
Result = DAG.getNode(ISD::READCYCLECOUNTER, MVT::i64, Tmp1);
|
||||
|
||||
// Since rdcc produce two values, make sure to remember that we legalized
|
||||
// both of them.
|
||||
AddLegalizedOperand(SDOperand(Node, 0), Result);
|
||||
AddLegalizedOperand(SDOperand(Node, 1), Result.getValue(1));
|
||||
return Result.getValue(Op.ResNo);
|
||||
break;
|
||||
|
||||
case ISD::TRUNCSTORE:
|
||||
|
Loading…
Reference in New Issue
Block a user