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.

llvm-svn: 164794

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

index dd0f548..eb4ffe1 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 206b96c..6d6586e 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]