This should not be dce'd
authorChris Lattner <sabre@nondot.org>
Sun, 20 Nov 2005 21:46:52 +0000 (21:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Nov 2005 21:46:52 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24433 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/rdtsc.ll

index adf84a39b3d243a46801a0a4ef591e0b8252de30..efc8ba6acc35e47e431501473dcc4627be0717c2 100644 (file)
@@ -2,9 +2,8 @@
 
 declare ulong %llvm.readcyclecounter()
 
-void %foo() {
-entry:
+ulong %foo() {
 %tmp.1 = call ulong %llvm.readcyclecounter ()
-ret void
+ret ulong %tmp.1
 }