[llvm-commits] [llvm] r130568 - /llvm/trunk/lib/CodeGen/Passes.cpp
Evan Cheng
evan.cheng at apple.com
Fri Apr 29 21:47:26 PDT 2011
Yayyyy!!! Congratulations!
Evan
On Apr 29, 2011, at 6:37 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
> Author: stoklund
> Date: Fri Apr 29 20:37:54 2011
> New Revision: 130568
>
> URL: http://llvm.org/viewvc/llvm-project?rev=130568&view=rev
> Log:
> Use a greedy algorithm for allocating registers.
>
> Modified:
> llvm/trunk/lib/CodeGen/Passes.cpp
>
> Modified: llvm/trunk/lib/CodeGen/Passes.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Passes.cpp?rev=130568&r1=130567&r2=130568&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/Passes.cpp (original)
> +++ llvm/trunk/lib/CodeGen/Passes.cpp Fri Apr 29 20:37:54 2011
> @@ -57,8 +57,8 @@
>
> // This forces linking of the greedy register allocator, so -regalloc=greedy
> // works in clang.
> - if (Ctor == createGreedyRegisterAllocator)
> - return createGreedyRegisterAllocator();
> + if (Ctor == createLinearScanRegisterAllocator)
> + return createLinearScanRegisterAllocator();
>
> if (Ctor != createDefaultRegisterAllocator)
> return Ctor();
> @@ -68,6 +68,6 @@
> case CodeGenOpt::None:
> return createFastRegisterAllocator();
> default:
> - return createLinearScanRegisterAllocator();
> + return createGreedyRegisterAllocator();
> }
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list