Add a note.

llvm-svn: 53535
This commit is contained in:
Chris Lattner 2008-07-14 00:19:59 +00:00
parent 16395e51f4
commit 8377c02308
1 changed files with 12 additions and 0 deletions

View File

@ -784,3 +784,15 @@ int test(int x_offs) {
} }
//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===//
Reassociate should turn things like:
int factorial(int X) {
return X*X*X*X*X*X*X*X;
}
into llvm.powi calls, allowing the code generator to produce balanced
multiplication trees.
//===---------------------------------------------------------------------===//