search for: _z9factorialidet_s0_

Displaying 1 result from an estimated 1 matches for "_z9factorialidet_s0_".

2008 Dec 07
1
[LLVMdev] opts do not occur in some situations?
Hi, I'm trying to understand the optimization passes. I was wondering why some seemingly obvious optimizations don't occur in some situations. For example, the attached file, main.opt.cpp compiles to main.opt.ll ( after running opt -std-compile-opts ). %0 = tail call double @_Z9factorialIdET_S0_(double 0.000000e+000) ; <double> [#uses=1] which could easily be determined as 1. And then multiplying the remaining numbers manually? %phitmp93 = mul double %0, 2.000000e+000 ; <double> [#uses=1] %phitmp94 = mul double %phitmp93, 3.000000e+000 ; <double> [#uses=1] ... ......