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
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