search for: dumpboolean

Displaying 2 results from an estimated 2 matches for "dumpboolean".

2009 Aug 28
2
[LLVMdev] A create-distinct-item function with no (other) side effects
Suppose I have some LLVM assembly like this: declare i8* @CreateDistinctItem() nounwind declare void @dumpBoolean(i1 %val) define i32 @main() {  %var1 = call i8* CreateDistinctItem()  %var2 = call i8* CreateDistinctItem()  %isEqual = icmp eq i8* %val1, %val2  call void @dumpBoolean(i1 %isEqual)  ret i32 0 } So far so good.  But if I take out the "call @dumpBoolean", the optimizer still leaves me wi...
2009 Aug 28
0
[LLVMdev] A create-distinct-item function with no (other) side effects
2009/8/28 Kenneth Uildriks <kennethuil at gmail.com> > Suppose I have some LLVM assembly like this: > > declare i8* @CreateDistinctItem() nounwind > > declare void @dumpBoolean(i1 %val) > > define i32 @main() > { > %var1 = call i8* CreateDistinctItem() > %var2 = call i8* CreateDistinctItem() > %isEqual = icmp eq i8* %val1, %val2 > call void @dumpBoolean(i1 %isEqual) > ret i32 0 > } > > So far so good. But if I take out the "call...