[llvm-commits] [llvm] r112270 - in /llvm/trunk: lib/Analysis/LazyValueInfo.cpp lib/Transforms/Scalar/JumpThreading.cpp test/Transforms/JumpThreading/basic.ll test/Transforms/JumpThreading/lvi-load.ll

Duncan Sands baldrick at free.fr
Fri Aug 27 12:04:17 PDT 2010


Hi Owen,

> --- llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp Fri Aug 27 12:12:29 2010
> @@ -669,6 +669,45 @@
>             }
>         }
>       }
> +
> +    // For a comparison where the LHS is outside this block, it's possible
> +    // that we've branch on it before.  Used LVI to see if we can simplify

we've branch on it -> we've branched on it

> +      // If we can determine the branch direction statically, converted
> +      // the conditional branch to an unconditional one.

converted the conditional branch -> convert the conditional branch

Ciao,

Duncan.



More information about the llvm-commits mailing list