[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Apr 12 10:41:03 PDT 2004


Changes in directory llvm/test/Regression/CodeGen/Generic:

2004-04-09-SameValueCoalescing.llx added (r1.1)

---
Log message:

Add same value coalescing testcase


---
Diffs of the changes:  (+19 -0)

Index: llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx:1.1
*** /dev/null	Mon Apr 12 10:40:42 2004
--- llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx	Mon Apr 12 10:40:25 2004
***************
*** 0 ****
--- 1,19 ----
+ ; Linear scan does not currently coalesce any two variables that have
+ ; overlapping live intervals. When two overlapping intervals have the same
+ ; value, they can be joined though.
+ ;
+ ; RUN: llvm-as < %s | llc -march=x86 -regalloc=linearscan | not grep 'mov %[A-Z]\{2,3\}, %[A-Z]\{2,3\}'
+ 
+ int %main() {
+         %ptr = alloca uint
+         br label %Loop
+ Loop:
+         %I = phi int [0, %0], [%i2, %Loop]
+         %i2 = add int %I, 1
+         %i3 = cast int %i2 to uint
+         store uint %i3, uint* %ptr
+         %C = seteq int %i2, 10
+         br bool %C, label %Out, label %Loop
+ Out:
+         ret int 0
+ }





More information about the llvm-commits mailing list