A function using any RC alias is enough to enable the ExeDepsFix pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144636
91177308-0d34-0410-b5e6-
96231b3b80d8
bool anyregs = false;
for (TargetRegisterClass::const_iterator I = RC->begin(), E = RC->end();
I != E; ++I)
- if (MF->getRegInfo().isPhysRegUsed(*I)) {
- anyregs = true;
- break;
- }
+ for (const unsigned *AI = TRI->getOverlaps(*I); *AI; ++AI)
+ if (MF->getRegInfo().isPhysRegUsed(*AI)) {
+ anyregs = true;
+ break;
+ }
if (!anyregs) return false;
// Initialize the AliasMap on the first use.