forked from OSchip/llvm-project
parent
16395e51f4
commit
8377c02308
|
@ -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.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
|
|
Loading…
Reference in New Issue