From 98ab4c64c429583a097adf98ae35ac4dd1dc2556 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 24 Apr 2017 19:48:51 +0000 Subject: Revert r301231: Accidentally committed stale files I forgot to commit local changes before commit. llvm-svn: 301232 --- llvm/lib/CodeGen/TargetRegisterInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/TargetRegisterInfo.cpp') 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; -- cgit v1.2.3