[PATCH] D64099: [InstCombine] pow(C,x) -> exp2(log2(C)*x)
    Dávid Bolvanský via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jul  5 08:13:08 PDT 2019
    
    
  
xbolva00 added a comment.
GCC has exp variant of this transformation so I checked their preconditions - unsafe math. My first patch had isFast() check but @efriedma requested to specify it better. I think afn/ninf/nnan is all we need. I wrote some small tests and compared printed results between Clang and GCC. I don’t think we could formally prove this transformation with Alive.
So, If you can test this patch with SPEC, please do - Thanks!
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64099/new/
https://reviews.llvm.org/D64099
    
    
More information about the llvm-commits
mailing list