Re: [Open64-devel] Code review reqeust for integer division simplification bug[CG]

2011-08-04 Thread Jian-Xin Lai
Looks fine to me. 2011/7/29 朱庆 > Hi all, > Can gatekeeper help review this fix? > test case: > //opencc -O0, result is 1. > //opencc -O1, reuslt is 0. > > unsigned long long a; > unsigned long long foo() > { > return a/-27ULL; > } > > int main() { > a = -27ULL; > return foo(); > } > > > Whe

[Open64-devel] Code review reqeust for integer division simplification bug[CG]

2011-07-28 Thread 朱庆
Hi all, Can gatekeeper help review this fix? test case: //opencc -O0, result is 1. //opencc -O1, reuslt is 0. unsigned long long a; unsigned long long foo() { return a/-27ULL; } int main() { a = -27ULL; return foo(); } When integer divisor is constant, Convert_WHIRL_To_OPs can simplfy i