summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/JumpThreading/crash-assertingvh.ll
blob: e784319922396bc639314cc6dd8759474665b7f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; 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
}
OpenPOWER on IntegriCloud