[llvm-commits] [PATCH][Instcombine, FAST-MATH] Some enhancement to Fmul

Shuxin Yang shuxin.llvm at gmail.com
Wed Jan 2 19:55:31 PST 2013


Oops, the way I handle the symmetric situation in a 2-iteration-loop is 
not included in this patch.
I double check my patch, I did canonicalize the fmul if one of the opnd 
is constant.


I believe my way to tackle this situation is not too ugly -- it is at 
the cost of no more than 5 lines of code to enclose
> a big chunk of logic which handle symmetric opportunities.
>
>   for (int i = 0; i < 2 ; i++) {
>       ...detect the pattern ..
>       std::swap(operands)
>   }
>
>
>
>
>
>




More information about the llvm-commits mailing list