[llvm-commits] [llvm] r130568 - /llvm/trunk/lib/CodeGen/Passes.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Apr 29 20:15:00 PDT 2011
On 04/29/2011 06:37 PM, Jakob Stoklund Olesen 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.
Update this comment?
> - 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