add a note

llvm-svn: 26472
This commit is contained in:
Chris Lattner 2006-03-02 22:34:38 +00:00
parent dc41f80f70
commit 9067500e2e
1 changed files with 7 additions and 0 deletions

View File

@ -79,3 +79,10 @@ int f(unsigned x) {
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25600
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01492.html
//===---------------------------------------------------------------------===//
We should reassociate:
int f(int a, int b){ return a * a + 2 * a * b + b * b; }
into:
int f(int a, int b) { return a * (a + 2 * b) + b * b; }
to eliminate a multiply.