We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab9ebd3 commit e14ef7eCopy full SHA for e14ef7e
llvm/lib/CodeGen/ExecutionDepsFix.cpp
@@ -650,10 +650,11 @@ bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) {
650
bool anyregs = false;
651
for (TargetRegisterClass::const_iterator I = RC->begin(), E = RC->end();
652
I != E; ++I)
653
- if (MF->getRegInfo().isPhysRegUsed(*I)) {
654
- anyregs = true;
655
- break;
656
- }
+ for (const unsigned *AI = TRI->getOverlaps(*I); *AI; ++AI)
+ if (MF->getRegInfo().isPhysRegUsed(*AI)) {
+ anyregs = true;
+ break;
657
+ }
658
if (!anyregs) return false;
659
660
// Initialize the AliasMap on the first use.
0 commit comments