mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
631c7c3e44
We were still crashing in the "no change" case because LVI was not getting invalidated. See the thread "Should analyses be able to hold AssertingVH to IR? (related to PR28400)" for more discussion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274656 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
399 B
LLVM
20 lines
399 B
LLVM
; RUN: opt -disable-output < %s -passes='module(function(jump-threading),globaldce)'
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
declare i32 @bar()
|
|
|
|
define internal i32 @foo() {
|
|
entry:
|
|
%call4 = call i32 @bar()
|
|
%cmp5 = icmp eq i32 %call4, 0
|
|
br i1 %cmp5, label %if.then6, label %if.end8
|
|
|
|
if.then6:
|
|
ret i32 0
|
|
|
|
if.end8:
|
|
ret i32 1
|
|
}
|