diff lib/Target/NVPTX/NVPTXPeephole.cpp @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents afa8332a0e37
children 803732b1fca8
line wrap: on
line diff
--- a/lib/Target/NVPTX/NVPTXPeephole.cpp	Tue Jan 26 22:56:36 2016 +0900
+++ b/lib/Target/NVPTX/NVPTXPeephole.cpp	Fri Nov 25 19:14:25 2016 +0900
@@ -57,7 +57,7 @@
 
   bool runOnMachineFunction(MachineFunction &MF) override;
 
-  const char *getPassName() const override {
+  StringRef getPassName() const override {
     return "NVPTX optimize redundant cvta.to.local instruction";
   }
 
@@ -125,6 +125,9 @@
 }
 
 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) {