diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-04 00:30:22 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-04 00:30:22 +0000 |
commit | 980bddfb1c26e2e9374d1645f9ae26c44742606f (patch) | |
tree | 93a53c04382c4d2d41e0a8a1b7d71530a5102625 /include/llvm/CodeGen | |
parent | dc8126bbb89cda8c87bf324e3495ceb3164ae7cb (diff) |
Use MRI::getSimpleHint() instead of getRegAllocPref() in remaining cases.
Targets can provide multiple hints now, so getRegAllocPref() doesn't
make sense any longer because it only returns one preferred register.
Replace it with getSimpleHint() in the remaining heuristics. This
function only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/VirtRegMap.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/VirtRegMap.h b/include/llvm/CodeGen/VirtRegMap.h index 5fe6297f18..f5357a4099 100644 --- a/include/llvm/CodeGen/VirtRegMap.h +++ b/include/llvm/CodeGen/VirtRegMap.h @@ -130,9 +130,7 @@ namespace llvm { unsigned getRegAllocPref(unsigned virtReg); /// @brief returns true if VirtReg is assigned to its preferred physreg. - bool hasPreferredPhys(unsigned VirtReg) { - return getPhys(VirtReg) == getRegAllocPref(VirtReg); - } + bool hasPreferredPhys(unsigned VirtReg); /// @brief returns true if VirtReg has a known preferred register. /// This returns false if VirtReg has a preference that is a virtual |