Displaying 2 results from an estimated 2 matches for "ctg2".
Did you mean:
cg2
2008 Jan 22
0
[LLVMdev] [llvm-commits] a question about type conversion propagation and elimination
...32:32-
i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-
f80:128:128"
Instcombine produces:
define i8* @tag_on(i8* %ptr, i8* %end, i8 %tag) {
Entry:
icmp ugt i8* %end, %ptr ; <i1>:0 [#uses=1]
br i1 %0, label %B1, label %B2
B1: ; preds = %Entry
store i8 1, i8* %ptr
%ctg2 = getelementptr i8* %ptr, i32 1 ; <i8*> [#uses=1]
br label %B2
B2: ; preds = %B1, %Entry
%eax.0.in = phi i8* [ %ctg2, %B1 ], [ %ptr, %Entry ] ; <i8*> [#uses=4]
icmp ult i8* %eax.0.in, %end ; <i1>:1 [#uses=1]
br i1 %1, label %B3, label %exit
B3: ; preds = %B2
store i8 1...
2009 Aug 28
1
[LLVMdev] va_arg
...1]
br i1 %5, label %bb3, label %bb4
bb3: ; preds = %bb
%6 = load i8** %2, align 8 ; <i8*> [#uses=1]
%7 = inttoptr i32 %4 to i8* ; <i8*> [#uses=1]
%8 = ptrtoint i8* %7 to i64 ; <i64> [#uses=1]
%ctg2 = getelementptr i8* %6, i64 %8 ; <i8*> [#uses=1]
%9 = add i32 %4, 8 ; <i32> [#uses=1]
store i32 %9, i32* %1, align 8
br label %bb5
bb4: ; preds = %bb
%10 = load i8** %3, align 8 ; <i8*> [#uses=2]...