mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
add a note
llvm-svn: 26472
This commit is contained in:
parent
af289a7ee4
commit
9a522f068e
@ -79,3 +79,10 @@ int f(unsigned x) {
|
|||||||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25600
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25600
|
||||||
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01492.html
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user