diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-04-23 15:51:21 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-04-23 15:51:21 +0000 |
commit | 488476c6eb8340e71391e05ebcbe3c891ff4f2b3 (patch) | |
tree | 4b6d473405717deeafcf6bb659ddf39fc17bb03e /llvm/lib/CodeGen/StackSlotColoring.cpp | |
parent | b659dd3a45151768fdbe66d83fada7641547280d (diff) | |
download | bcm5719-llvm-488476c6eb8340e71391e05ebcbe3c891ff4f2b3.tar.gz bcm5719-llvm-488476c6eb8340e71391e05ebcbe3c891ff4f2b3.zip |
StackSlotColoring: Fix missing skipFunction check
llvm-svn: 330606
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 27726c3275a..1d0aa687337 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -455,6 +455,9 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) { << "********** Function: " << MF.getName() << '\n'; }); + if (skipFunction(MF.getFunction())) + return false; + MFI = &MF.getFrameInfo(); TII = MF.getSubtarget().getInstrInfo(); LS = &getAnalysis<LiveStacks>(); |