[Hexagon] Make a couple of passes compliant with -opt-bisect-limit

llvm-svn: 300329
This commit is contained in:
Krzysztof Parzyszek 2017-04-14 15:26:34 +00:00
parent 750fe2220e
commit 643aaea59e
2 changed files with 5 additions and 0 deletions

View File

@ -460,6 +460,8 @@ HexagonCopyToCombine::findPotentialNewifiableTFRs(MachineBasicBlock &BB) {
}
bool HexagonCopyToCombine::runOnMachineFunction(MachineFunction &MF) {
if (skipFunction(*MF.getFunction()))
return false;
if (IsCombinesDisabled) return false;

View File

@ -638,6 +638,9 @@ bool HexagonOptAddrMode::constructDefMap(MachineBasicBlock *B) {
}
bool HexagonOptAddrMode::runOnMachineFunction(MachineFunction &MF) {
if (skipFunction(*MF.getFunction()))
return false;
bool Changed = false;
auto &HST = MF.getSubtarget<HexagonSubtarget>();
auto &MRI = MF.getRegInfo();