llvm.org GIT mirror llvm / 78e2fb2
Add optimization bisect opt-in calls for ARM passes Differential Revision: http://reviews.llvm.org/D19449 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267480 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Kaylor 4 years ago
5 changed file(s) with 15 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
680680 }
681681
682682 bool A15SDOptimizer::runOnMachineFunction(MachineFunction &Fn) {
683 if (skipFunction(*Fn.getFunction()))
684 return false;
685
683686 const ARMSubtarget &STI = Fn.getSubtarget();
684687 // Since the A15SDOptimizer pass can insert VDUP instructions, it can only be
685688 // enabled when NEON is available.
18861886 }
18871887
18881888 bool ARMLoadStoreOpt::runOnMachineFunction(MachineFunction &Fn) {
1889 if (skipFunction(*Fn.getFunction()))
1890 return false;
1891
18891892 MF = &Fn;
18901893 STI = &static_cast(Fn.getSubtarget());
18911894 TL = STI->getTargetLowering();
19611964 ARM_PREALLOC_LOAD_STORE_OPT_NAME, false, false)
19621965
19631966 bool ARMPreAllocLoadStoreOpt::runOnMachineFunction(MachineFunction &Fn) {
1964 if (AssumeMisalignedLoadStores)
1967 if (AssumeMisalignedLoadStores || skipFunction(*Fn.getFunction()))
19651968 return false;
19661969
19671970 TD = &Fn.getDataLayout();
5050 }
5151
5252 bool ARMOptimizeBarriersPass::runOnMachineFunction(MachineFunction &MF) {
53 if (skipFunction(*MF.getFunction()))
54 return false;
55
5356 // Vector to store the DMBs we will remove after the first iteration
5457 std::vector ToRemove;
5558 // DMBType is the Imm value of the first operand. It determines whether it's a
377377 }
378378
379379 bool MLxExpansion::runOnMachineFunction(MachineFunction &Fn) {
380 if (skipFunction(*Fn.getFunction()))
381 return false;
382
380383 TII = static_cast(Fn.getSubtarget().getInstrInfo());
381384 TRI = Fn.getSubtarget().getRegisterInfo();
382385 MRI = &Fn.getRegInfo();
10241024 }
10251025
10261026 bool Thumb2SizeReduce::runOnMachineFunction(MachineFunction &MF) {
1027 if (PredicateFtor && !PredicateFtor(*MF.getFunction()))
1027 if (skipFunction(*MF.getFunction()) ||
1028 PredicateFtor && !PredicateFtor(*MF.getFunction()))
10281029 return false;
10291030
10301031 STI = &static_cast(MF.getSubtarget());