[llvm] r231191 - Weaken the check for a specific movl on the twoaddr-coalesce-3

Eric Christopher echristo at gmail.com
Tue Mar 3 17:19:17 PST 2015


Author: echristo
Date: Tue Mar  3 19:19:17 2015
New Revision: 231191

URL: http://llvm.org/viewvc/llvm-project?rev=231191&view=rev
Log:
Weaken the check for a specific movl on the twoaddr-coalesce-3
test - we only care that there are two moves in the loop and not
which part is relative to which register anyhow.

Modified:
    llvm/trunk/test/CodeGen/X86/twoaddr-coalesce-3.ll

Modified: llvm/trunk/test/CodeGen/X86/twoaddr-coalesce-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/twoaddr-coalesce-3.ll?rev=231191&r1=231190&r2=231191&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/twoaddr-coalesce-3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/twoaddr-coalesce-3.ll Tue Mar  3 19:19:17 2015
@@ -56,14 +56,13 @@ for.body.lr.ph:
 
 ; Check that only two mov will be generated in the kernel loop.
 ; CHECK-LABEL: goo:
-; CHECK: g at GOTPCREL(%rip), [[REG3:%[a-z0-0]+]]
 ; CHECK: [[LOOP2:^[a-zA-Z0-9_.]+]]: {{#.*}} %for.body
 ; CHECK-NOT: mov
 ; CHECK: movl {{.*}}, [[REG2:%[a-z0-9]+]]
 ; CHECK-NOT: mov
 ; CHECK: shrl $31, [[REG2]]
 ; CHECK-NOT: mov
-; CHECK: movl {{.*}}, ([[REG3]])
+; CHECK: movl {{.*}}
 ; CHECK: jl [[LOOP2]]
 for.body:                                         ; preds = %for.body.lr.ph, %for.body
   %add5 = phi i32 [ %total.promoted, %for.body.lr.ph ], [ %add, %for.body ]





More information about the llvm-commits mailing list