mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 03:58:16 +00:00
A minor simplication in the generated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a394117bc0
commit
a6a1ab3d28
@ -2875,7 +2875,7 @@ public:
|
|||||||
std::string NodeName;
|
std::string NodeName;
|
||||||
if (!isRoot) {
|
if (!isRoot) {
|
||||||
NodeName = "Tmp" + utostr(ResNo);
|
NodeName = "Tmp" + utostr(ResNo);
|
||||||
Code2 = "SDOperand " + NodeName + " = SDOperand(";
|
Code2 = "SDOperand " + NodeName + "(";
|
||||||
} else {
|
} else {
|
||||||
NodeName = "ResNode";
|
NodeName = "ResNode";
|
||||||
if (!ResNodeDecled) {
|
if (!ResNodeDecled) {
|
||||||
@ -2991,7 +2991,7 @@ public:
|
|||||||
bool NeedReplace = false;
|
bool NeedReplace = false;
|
||||||
if (NodeHasOutFlag) {
|
if (NodeHasOutFlag) {
|
||||||
if (!InFlagDecled) {
|
if (!InFlagDecled) {
|
||||||
emitCode("SDOperand InFlag = SDOperand(ResNode, " +
|
emitCode("SDOperand InFlag(ResNode, " +
|
||||||
utostr(NumResults + (unsigned)NodeHasChain) + ");");
|
utostr(NumResults + (unsigned)NodeHasChain) + ");");
|
||||||
InFlagDecled = true;
|
InFlagDecled = true;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user