[PATCH] D41381: [InstSimplify] Missed optimization in math expression: squashing exp(log), log(exp)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 08:08:52 PST 2018


spatel added a comment.

What is the expected result for this kind of test (please add at least one test like this)?

  define double @exp_log_partly_fast(double %a) {
    %1 = call double @llvm.log.f64(double %a)          ; strict
    %2 = call fast double @llvm.exp.f64(double %1)
    ret double %2
  }


https://reviews.llvm.org/D41381





More information about the llvm-commits mailing list