From: Jinsong Ji Date: Thu, 11 Jul 2019 19:16:33 +0000 (+0000) Subject: [PowerPC][NFC] Update testcase to avoid dead code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92986a84f2fd37d83927ff0d21b6fc7d6fa8361a;p=llvm [PowerPC][NFC] Update testcase to avoid dead code The original testcase might be optimized out due to dead code, update the testcase to avoid it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/PowerPC/sms-iterator.ll b/test/CodeGen/PowerPC/sms-iterator.ll index 1210ed98b5b..6d025a40572 100644 --- a/test/CodeGen/PowerPC/sms-iterator.ll +++ b/test/CodeGen/PowerPC/sms-iterator.ll @@ -7,7 +7,7 @@ ; CHECK: MII = 8 MAX_II = 18 -define dso_local fastcc void @_ZN3povL9polysolveEiPdS0_() unnamed_addr #0 { +define dso_local fastcc double @_ZN3povL9polysolveEiPdS0_() unnamed_addr #0 { br label %1 1: ; preds = %1, %0 @@ -32,5 +32,5 @@ define dso_local fastcc void @_ZN3povL9polysolveEiPdS0_() unnamed_addr #0 { 14: ; preds = %3, %2 %15 = phi double [ undef, %2 ], [ %11, %3 ] %16 = fmul fast double %15, undef - ret void + ret double %16 }