[PATCH] D57847: Add skipFunction to PostRA machine sinking pass.
Xin Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 6 14:17:58 PST 2019
trentxintong created this revision.
trentxintong added a reviewer: junbuml.
Herald added a project: LLVM.
Add skipFunction to PostRA machine sinking pass.
Repository:
rL LLVM
https://reviews.llvm.org/D57847
Files:
lib/CodeGen/MachineSink.cpp
Index: lib/CodeGen/MachineSink.cpp
===================================================================
--- lib/CodeGen/MachineSink.cpp
+++ lib/CodeGen/MachineSink.cpp
@@ -1202,6 +1202,9 @@
}
bool PostRAMachineSinking::runOnMachineFunction(MachineFunction &MF) {
+ if (skipFunction(MF.getFunction()))
+ return false;
+
bool Changed = false;
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57847.185643.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190206/bb9a58f0/attachment.bin>
More information about the llvm-commits
mailing list