diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-04-24 19:48:51 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-04-24 19:48:51 +0000 |
commit | 98ab4c64c429583a097adf98ae35ac4dd1dc2556 (patch) | |
tree | 70bfc17504073c2113cb0bc4fc6a5a8d9dfee583 /llvm/lib/CodeGen/TargetRegisterInfo.cpp | |
parent | c0197066d786db4d04baadacfb3a88244e0026f4 (diff) | |
download | bcm5719-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/TargetRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetRegisterInfo.cpp b/llvm/lib/CodeGen/TargetRegisterInfo.cpp index 92c97df78f0..ae579af7ec6 100644 --- a/llvm/lib/CodeGen/TargetRegisterInfo.cpp +++ b/llvm/lib/CodeGen/TargetRegisterInfo.cpp @@ -156,7 +156,7 @@ TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, MVT VT) const { // this physreg. const TargetRegisterClass* BestRC = nullptr; for (const TargetRegisterClass* RC : regclasses()) { - if ((VT == MVT::Other || hasType(*RC, VT)) && RC->contains(reg) && + if ((VT == MVT::Other || RC->hasType(VT)) && RC->contains(reg) && (!BestRC || BestRC->hasSubClass(RC))) BestRC = RC; } @@ -207,7 +207,7 @@ const TargetRegisterClass *firstCommonClass(const uint32_t *A, if (unsigned Common = *A++ & *B++) { const TargetRegisterClass *RC = TRI->getRegClass(I + countTrailingZeros(Common)); - if (SVT == MVT::SimpleValueType::Any || TRI->hasType(*RC, VT)) + if (SVT == MVT::SimpleValueType::Any || RC->hasType(VT)) return RC; } return nullptr; |