Home | History | Annotate | Download | only in JumpThreading
      1 ; RUN: opt -disable-output < %s -passes='module(function(jump-threading),globaldce)'
      2 
      3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
      4 target triple = "x86_64-unknown-linux-gnu"
      5 
      6 declare i32 @bar()
      7 
      8 define internal i32 @foo() {
      9 entry:
     10   %call4 = call i32 @bar()
     11   %cmp5 = icmp eq i32 %call4, 0
     12   br i1 %cmp5, label %if.then6, label %if.end8
     13 
     14 if.then6:
     15   ret i32 0
     16 
     17 if.end8:
     18   ret i32 1
     19 }
     20