[llvm-commits] [llvm] r133435 - in /llvm/trunk: include/llvm/ include/llvm/Support/ lib/Target/CppBackend/ lib/Transforms/Scalar/ lib/Transforms/Utils/ lib/VMCore/

Frits van Bommel fvbommel at gmail.com
Mon Jun 20 09:03:14 PDT 2011


>  void PHINode::growOperands() {
>   unsigned e = getNumOperands();
> -  // Multiply by 1.5 and round down so the result is still even.
> -  unsigned NumOps = e + e / 4 * 2;
> +  unsigned NumOps = e + e / 2;
>   if (NumOps < 4) NumOps = 4;      // 4 op PHI nodes are VERY common.

Wouldn't it now be 2-op PHI nodes that are "VERY common"?
(since 2 of the ops used to be basic blocks)




More information about the llvm-commits mailing list