[PATCH] D78659: Add nomerge function attribute to supress tail merge optimization in simplifyCFG

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 12:20:27 PDT 2020


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/IR/Attributes.td:106
 
+/// Disable tail merge for this function
+def NoMerge : EnumAttr<"nomerge">;
----------------
Elsewhere we seem to be preventing any kind of movement,
not just disabling inlining of such functions if the call is a tailcall.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78659/new/

https://reviews.llvm.org/D78659





More information about the llvm-commits mailing list