Enable the new coalescer algorithm by default.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 27 Sep 2012 21:06:02 +0000 (21:06 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 27 Sep 2012 21:06:02 +0000 (21:06 +0000)
The new coalescer is better at merging values into unused vector lanes,
improving NEON code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164794 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/ARM/reg_sequence.ll

index dd0f5488675d07b819713d87906a66104da671bd..eb4ffe17a1ece65a56e8c077f5db785bea106e3f 100644 (file)
@@ -70,7 +70,7 @@ VerifyCoalescing("verify-coalescing",
 
 // Temporary option for testing new coalescer algo.
 static cl::opt<bool>
-NewCoalescer("new-coalescer", cl::Hidden,
+NewCoalescer("new-coalescer", cl::Hidden, cl::init(true),
              cl::desc("Use new coalescer algorithm"));
 
 namespace {
index 206b96cd0766a9f30ea685c1f9de4ca5a478b04d..6d6586e4f28397b780a64e9c291b79e1f9333953 100644 (file)
@@ -124,7 +124,6 @@ return1:
 return2:
 ; CHECK:        %return2
 ; CHECK:        vadd.i32
-; CHECK:        vorr {{q[0-9]+}}, {{q[0-9]+}}
 ; CHECK-NOT:    vmov
 ; CHECK:        vst2.32 {d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}, d{{[0-9]+}}}
   %tmp100 = extractvalue %struct.__neon_int32x4x2_t %tmp2, 0 ; <<4 x i32>> [#uses=1]