[llvm] r365810 - [PowerPC][NFC] Update testcase to avoid dead code
Jinsong Ji via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 12:16:33 PDT 2019
Author: jsji
Date: Thu Jul 11 12:16:33 2019
New Revision: 365810
URL: http://llvm.org/viewvc/llvm-project?rev=365810&view=rev
Log:
[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.
Modified:
llvm/trunk/test/CodeGen/PowerPC/sms-iterator.ll
Modified: llvm/trunk/test/CodeGen/PowerPC/sms-iterator.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/sms-iterator.ll?rev=365810&r1=365809&r2=365810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/sms-iterator.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/sms-iterator.ll Thu Jul 11 12:16:33 2019
@@ -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 @_ZN3povL9p
14: ; preds = %3, %2
%15 = phi double [ undef, %2 ], [ %11, %3 ]
%16 = fmul fast double %15, undef
- ret void
+ ret double %16
}
More information about the llvm-commits
mailing list