This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1495,7 +1495,7 @@ bool HexagonGenInsert::runOnMachineFunction(MachineFunction &MF) {
1495
1495
// version of DCE that preserves lifetime markers. Without it, merging
1496
1496
// of stack objects can fail to recognize and merge disjoint objects
1497
1497
// leading to unnecessary stack growth.
1498
- removeDeadCode (MDT->getRootNode ());
1498
+ Changed = removeDeadCode (MDT->getRootNode ());
1499
1499
1500
1500
const HexagonEvaluator HE (*HRI, *MRI, *HII, MF);
1501
1501
BitTracker BTLoc (HE, MF);
@@ -1533,7 +1533,7 @@ bool HexagonGenInsert::runOnMachineFunction(MachineFunction &MF) {
1533
1533
}
1534
1534
1535
1535
if (IFMap.empty ())
1536
- return false ;
1536
+ return Changed ;
1537
1537
1538
1538
{
1539
1539
NamedRegionTimer _T (" pruning" , " hexinsert" , TimingDetail);
@@ -1546,7 +1546,7 @@ bool HexagonGenInsert::runOnMachineFunction(MachineFunction &MF) {
1546
1546
}
1547
1547
1548
1548
if (IFMap.empty ())
1549
- return false ;
1549
+ return Changed ;
1550
1550
1551
1551
{
1552
1552
NamedRegionTimer _T (" selection" , " hexinsert" , TimingDetail);
@@ -1571,13 +1571,15 @@ bool HexagonGenInsert::runOnMachineFunction(MachineFunction &MF) {
1571
1571
for (unsigned i = 0 , n = Out.size (); i < n; ++i)
1572
1572
IFMap.erase (Out[i]);
1573
1573
}
1574
+ if (IFMap.empty ())
1575
+ return Changed;
1574
1576
1575
1577
{
1576
1578
NamedRegionTimer _T (" generation" , " hexinsert" , TimingDetail);
1577
- Changed = generateInserts ();
1579
+ generateInserts ();
1578
1580
}
1579
1581
1580
- return Changed ;
1582
+ return true ;
1581
1583
}
1582
1584
1583
1585
You can’t perform that action at this time.
0 commit comments