When checking for sret-demotion, it needs to use legal types. When using the return...
[oota-llvm.git] / test / CodeGen / X86 / remat-mov-0.ll
1 ; RUN: llc < %s -march=x86-64 | grep {xorl      %edi, %edi} | count 4
2
3 ; CodeGen should remat the zero instead of spilling it.
4
5 declare void @foo(i64 %p)
6
7 define void @bar() nounwind {
8   call void @foo(i64 0)
9   call void @foo(i64 0)
10   call void @foo(i64 0)
11   call void @foo(i64 0)
12   ret void
13 }