summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
commit98ab4c64c429583a097adf98ae35ac4dd1dc2556 (patch)
tree70bfc17504073c2113cb0bc4fc6a5a8d9dfee583 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parentc0197066d786db4d04baadacfb3a88244e0026f4 (diff)
downloadbcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.tar.gz
bcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.zip
Revert r301231: Accidentally committed stale files
I forgot to commit local changes before commit. llvm-svn: 301232
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 11060eaf92a..069fb5b9c09 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2541,7 +2541,7 @@ TargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *RI,
for (const TargetRegisterClass *RC : RI->regclasses()) {
// If none of the value types for this register class are valid, we
// can't use it. For example, 64-bit reg classes on 32-bit targets.
- if (!isLegalRC(*RI, *RC))
+ if (!isLegalRC(RC))
continue;
for (TargetRegisterClass::iterator I = RC->begin(), E = RC->end();
@@ -2553,9 +2553,9 @@ TargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *RI,
// If this register class has the requested value type, return it,
// otherwise keep searching and return the first class found
// if no other is found which explicitly has the requested type.
- if (RI->hasType(*RC, VT))
+ if (RC->hasType(VT))
return S;
- if (!R.second)
+ else if (!R.second)
R = S;
}
}
OpenPOWER on IntegriCloud