[llvm-commits] [llvm] r127674 - in /llvm/trunk: lib/Transforms/Utils/LCSSA.cpp test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll test/Transforms/LCSSA/unused-phis.ll

Frits van Bommel fvbommel at gmail.com
Tue Mar 15 02:46:57 PDT 2011


On Tue, Mar 15, 2011 at 8:41 AM, Cameron Zwarich <zwarich at apple.com> wrote:
> +  // Remove PHI nodes that did not have any uses rewritten.
> +  for (unsigned i = 0, e = AddedPHIs.size(); i != e; ++i) {
> +    if (!AddedPHIs[i]->hasNUsesOrMore(1))

I think use_empty() would be better than !hasNUsesOrMore(1)...

> +      AddedPHIs[i]->eraseFromParent();
> +  }




More information about the llvm-commits mailing list