[llvm-dev] Rerunning TailCallElim at a later stage

Nat! via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 3 09:47:43 PDT 2015


Reid Kleckner schrieb:
> Your best bet for enabling tail calls with your meta calling convention
> is to write a custom pass that rewrites calls in the tail position to
> use the incoming argument memory instead of a local alloca. It would be
> up to this custom pass to determine exactly when this is legal.


I assume that would be a pass that I would try to get, somehow, ahead of 
"TailCallElim" in the "opt" phase ?

Thanks for the help!

Ciao
    Nat!


More information about the llvm-dev mailing list