[llvm-commits] [llvm] r166407 - in /llvm/trunk: lib/Transforms/Scalar/TailRecursionElimination.cpp test/Transforms/TailCallElim/nocapture.ll

Duncan Sands baldrick at free.fr
Mon Oct 22 02:49:33 PDT 2012


> Reapply r166405, teaching tailcallelim to be smarter about nocapture, with a
> very small but very important bugfix:
>    bool shouldExplore(Use *U) {
>      Value *V = U->get();
>      if (isa<CallInst>(V) || isa<InvokeInst>(V))
>      [...]
> should have read:
>    bool shouldExplore(Use *U) {
>      Value *V = U->getUser();
>      if (isa<CallInst>(V) || isa<InvokeInst>(V))

Oops :)

Ciao, Duncan.




More information about the llvm-commits mailing list