From 643aaea59ea764af59b80eb9b2aeac1ed25592b6 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 14 Apr 2017 15:26:34 +0000 Subject: [PATCH] [Hexagon] Make a couple of passes compliant with -opt-bisect-limit llvm-svn: 300329 --- llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp | 2 ++ llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp b/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp index 5f375f8dc742..8118c8eb149d 100644 --- a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp +++ b/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp @@ -460,6 +460,8 @@ HexagonCopyToCombine::findPotentialNewifiableTFRs(MachineBasicBlock &BB) { } bool HexagonCopyToCombine::runOnMachineFunction(MachineFunction &MF) { + if (skipFunction(*MF.getFunction())) + return false; if (IsCombinesDisabled) return false; diff --git a/llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp b/llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp index be50288849ca..800d81bf18dd 100644 --- a/llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp +++ b/llvm/lib/Target/Hexagon/HexagonOptAddrMode.cpp @@ -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(); auto &MRI = MF.getRegInfo();