diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-17 18:44:18 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-17 18:44:18 +0000 |
commit | 073644268349480e57dd0d8d488f6ef2894be87a (patch) | |
tree | 5451023405e7f2b232ba9cc876620bbee79dbfab /llvm/lib/CodeGen/ExecutionDepsFix.cpp | |
parent | ec92817e055e0c1614bc9a2c77bea251e889bdb0 (diff) | |
download | bcm5719-llvm-073644268349480e57dd0d8d488f6ef2894be87a.tar.gz bcm5719-llvm-073644268349480e57dd0d8d488f6ef2894be87a.zip |
Merge MRI::isPhysRegOrOverlapUsed() into isPhysRegUsed().
All callers of these functions really want the isPhysRegOrOverlapUsed()
functionality which also checks aliases. For historical reasons, targets
without register aliases were calling isPhysRegUsed() instead.
Change isPhysRegUsed() to also check aliases, and switch all
isPhysRegOrOverlapUsed() callers to isPhysRegUsed().
llvm-svn: 166117
Diffstat (limited to 'llvm/lib/CodeGen/ExecutionDepsFix.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ExecutionDepsFix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ExecutionDepsFix.cpp b/llvm/lib/CodeGen/ExecutionDepsFix.cpp index 2311842671a..ed78f194215 100644 --- a/llvm/lib/CodeGen/ExecutionDepsFix.cpp +++ b/llvm/lib/CodeGen/ExecutionDepsFix.cpp @@ -657,7 +657,7 @@ bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) { bool anyregs = false; for (TargetRegisterClass::const_iterator I = RC->begin(), E = RC->end(); I != E; ++I) - if (MF->getRegInfo().isPhysRegOrOverlapUsed(*I)) { + if (MF->getRegInfo().isPhysRegUsed(*I)) { anyregs = true; break; } |