diff options
Diffstat (limited to 'lib/Target/NVPTX/NVPTXPeephole.cpp')
-rw-r--r-- | lib/Target/NVPTX/NVPTXPeephole.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/NVPTX/NVPTXPeephole.cpp b/lib/Target/NVPTX/NVPTXPeephole.cpp index a61c291d233f..7d0cd553e03f 100644 --- a/lib/Target/NVPTX/NVPTXPeephole.cpp +++ b/lib/Target/NVPTX/NVPTXPeephole.cpp @@ -125,6 +125,9 @@ static void CombineCVTAToLocal(MachineInstr &Root) { } bool NVPTXPeephole::runOnMachineFunction(MachineFunction &MF) { + if (skipFunction(*MF.getFunction())) + return false; + bool Changed = false; // Loop over all of the basic blocks. for (auto &MBB : MF) { |