search for: smallprint

Displaying 3 results from an estimated 3 matches for "smallprint".

Did you mean: smallint
2016 Dec 19
3
opt -instcombine interesting behavior
...urn reg; } I assumed it would be optimized to - again pseudo code -: int main(){ return 257; } Instead, the program is optimized to(see also attachment smallOpt.ll/smallOpt.bc): define i32 @main() { ret i32 1 } So i verified my assumption by printing '%4' of the original program (smallPrint.ll/smallPrint.bc) and the output was 257. I also optimized smallPrint.ll/smallPrint.bc , again only with instcombine, but the output is changed to 1 (smallPrintOpt.bc). I also tested it with clang 3.8.0. What am i missing? Best regards, Stephan -------------- next part -------------- A non-text...
2016 Dec 19
0
opt -instcombine interesting behavior
...> > int main(){ > return 257; > } > > Instead, the program is optimized to(see also attachment > smallOpt.ll/smallOpt.bc): > > define i32 @main() { > ret i32 1 > } > > So i verified my assumption by printing '%4' of the original program > (smallPrint.ll/smallPrint.bc) and the output was 257. > I also optimized smallPrint.ll/smallPrint.bc , again only with instcombine, but > the output is changed to 1 (smallPrintOpt.bc). > > I also tested it with clang 3.8.0. > > What am i missing? > > > Best regards, > Stephan
2016 Dec 19
1
opt -instcombine interesting behavior
...>> } >> >> Instead, the program is optimized to(see also attachment >> smallOpt.ll/smallOpt.bc): >> >> define i32 @main() { >> ret i32 1 >> } >> >> So i verified my assumption by printing '%4' of the original program >> (smallPrint.ll/smallPrint.bc) and the output was 257. >> I also optimized smallPrint.ll/smallPrint.bc , again only with instcombine, but >> the output is changed to 1 (smallPrintOpt.bc). >> >> I also tested it with clang 3.8.0. >> >> What am i missing? >> >>...