mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
first half of a pass through IndVarSimplify::HandleFloatingPointIV,
this cleans up a bunch of code and also fixes several crashes and miscompiles. More to come unfortunately, this optimization is quite broken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
19
test/Transforms/IndVarSimplify/crash.ll
Normal file
19
test/Transforms/IndVarSimplify/crash.ll
Normal file
@@ -0,0 +1,19 @@
|
||||
; RUN: opt -indvars %s -disable-output
|
||||
|
||||
declare i32 @putchar(i8) nounwind
|
||||
|
||||
define void @t2(i1* %P) nounwind {
|
||||
; <label>:0
|
||||
br label %1
|
||||
|
||||
; <label>:1 ; preds = %1, %0
|
||||
%2 = phi double [ 9.000000e+00, %0 ], [ %4, %1 ] ; <double> [#uses=1]
|
||||
%3 = tail call i32 @putchar(i8 72) ; <i32> [#uses=0]
|
||||
%4 = fadd double %2, -1.000000e+00 ; <double> [#uses=2]
|
||||
%5 = fcmp ult double %4, 0.000000e+00 ; <i1> [#uses=1]
|
||||
store i1 %5, i1* %P
|
||||
br i1 %5, label %6, label %1
|
||||
|
||||
; <label>:6 ; preds = %1
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user