projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misched: Use the TargetSchedModel interface wherever possible.
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
RegisterScavenging.h
diff --git
a/include/llvm/CodeGen/RegisterScavenging.h
b/include/llvm/CodeGen/RegisterScavenging.h
index 8f90ca796b2dda271f9e8760d70a9a44656b41c1..3986a8dd7da15713efa2aa81b75534deb8c73230 100644
(file)
--- a/
include/llvm/CodeGen/RegisterScavenging.h
+++ b/
include/llvm/CodeGen/RegisterScavenging.h
@@
-134,8
+134,9
@@
private:
/// isUsed / isUnused - Test if a register is currently being used.
///
/// isUsed / isUnused - Test if a register is currently being used.
///
- bool isUsed(unsigned Reg) const { return !RegsAvailable.test(Reg); }
- bool isUnused(unsigned Reg) const { return RegsAvailable.test(Reg); }
+ bool isUsed(unsigned Reg) const {
+ return !RegsAvailable.test(Reg) || ReservedRegs.test(Reg);
+ }
/// isAliasUsed - Is Reg or an alias currently in use?
bool isAliasUsed(unsigned Reg) const;
/// isAliasUsed - Is Reg or an alias currently in use?
bool isAliasUsed(unsigned Reg) const;