[llvm-commits] [llvm] r101429 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Bob Wilson
bob.wilson at apple.com
Thu Apr 15 18:41:04 PDT 2010
On Apr 15, 2010, at 5:38 PM, Chris Lattner wrote:
> Author: lattner
> Date: Thu Apr 15 19:38:19 2010
> New Revision: 101429
>
> URL: http://llvm.org/viewvc/llvm-project?rev=101429&view=rev
> Log:
> improve comments.
>
> Modified:
> llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
>
> Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=101429&r1=101428&r2=101429&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Thu Apr 15 19:38:19 2010
> @@ -148,14 +148,27 @@
> //===----------------------------------------------------------------------===//
>
> namespace {
> -/// ConvertToScalarInfo - This struct is used by CanConvertToScalar
> +/// ConvertToScalarInfo - This class implements the "Convert To Scalar"
> +/// optimization, which scans the uses of an alloca and determines if it can
> +/// rewrite it in terms of a single new alloca that can be mem2reg'd.
> class ConvertToScalarInfo {
> /// AllocaSize - The size of the alloca being considered.
> unsigned AllocaSize;
> const TargetData &TD;
>
> + /// IsNotTrivial - This is set to true if there is somee access to the object
/somee/some
> + /// which means that mem2reg can't promote it.
> bool IsNotTrivial;
More information about the llvm-commits
mailing list