mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
generate chain result
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b91c77385
commit
2729e614fa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user