[PATCH] D26270: Avoid tail recursion elimination across calls with operand bundles

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 13:06:17 PST 2016


rnk added inline comments.


================
Comment at: test/Transforms/TailCallElim/operand-bundles.ll:53-54
+  %cp = catchpad within %cs1 []
+  call void @f_3(i1 %B) [ "funclet"(token %cp) ]
+  ret void
+
----------------
It's kind of meaningless to attempt to return from a funclet without first returning to the parent function. Bad things would happen. I think we should go with the previous patch without the special casing for funclet.


https://reviews.llvm.org/D26270





More information about the llvm-commits mailing list