[PATCH] D17013: Add convergent-removing bits to FunctionAttrs pass.

Jingyue Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 13:20:33 PST 2016


jingyue accepted this revision.
jingyue added a reviewer: jingyue.
This revision is now accepted and ready to land.

================
Comment at: lib/Transforms/IPO/FunctionAttrs.cpp:949
@@ +948,3 @@
+    // If any of the SCC's functions is optnone and convergent, we can't remove
+    // the convergent attr from any of the SCC's functions.
+    if (F->hasFnAttribute(Attribute::OptimizeNone)) return false;
----------------
Looks good now. 


http://reviews.llvm.org/D17013





More information about the llvm-commits mailing list