Hi Anton,

Thanks for the careful review and the feedback.

I'm attaching an updated patch for the fix per your suggestion:
1. removed the new line before  "{"
2. moved the MulAmtAbs to the path when MulAmt<0

I run the test suite again. No bugs.

The patch for the new test cases is the same. (I'm attaching it again)

Please feel free to let me know if there is any other issues.

Thanks,
Weiming


-----Original Message-----
From: Anton Korobeynikov [mailto:[email protected]] 
Sent: Friday, March 09, 2012 2:20 AM
To: Weiming Zhao
Cc: [email protected]; [email protected]
Subject: Re: [llvm-commits] Fix bug 12212 Missing mul-to-shift conversion for 
negative non-power-of 2 constants on ARM

Hello

> Please review it.
Generally looks good. Two nit-picks:
1. Make sure your code style matches the style of surrounding code (here, in 
particular - the newlines before / after "{" and "}") 2. I don't think you need 
separate MulAmtAbs variable - after all, later you have if() basing on the sign 
of MulAmtAbs, so, you can just fold the proper absolute value inside the 
branches of if()

Thanks for working on this!
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

Attachment: Bug12212-LLVM-misses-multiply-by-non-power-of-2-negat.patch
Description: Binary data

Attachment: 0002-update-unit-test.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to