Mercurial > hg > CbC > CbC_llvm
comparison test/Transforms/InstCombine/compare-unescaped.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
142 | 142 |
143 chk2: | 143 chk2: |
144 ret i8* %n | 144 ret i8* %n |
145 ; CHECK-LABEL: compare_ret_escape | 145 ; CHECK-LABEL: compare_ret_escape |
146 ; CHECK: %cmp = icmp eq i8* %n, %c | 146 ; CHECK: %cmp = icmp eq i8* %n, %c |
147 ; CHECK: %cmp2 = icmp eq i32* %bc, %lgp | 147 ; CHECK: %cmp2 = icmp eq i32* %lgp, %bc |
148 } | 148 } |
149 | 149 |
150 ; The malloc call for %m cannot be elided since it is used in the call to function f. | 150 ; The malloc call for %m cannot be elided since it is used in the call to function f. |
151 ; However, the cmp can be folded to true as %n doesnt escape and %m, %n are distinct allocations | 151 ; However, the cmp can be folded to true as %n doesnt escape and %m, %n are distinct allocations |
152 define i1 @compare_distinct_pointer_escape() { | 152 define i1 @compare_distinct_pointer_escape() { |