[PATCH] D102574: [InstCombine] Missed optimization for pow(x, y) * pow(x, z) with fast-math

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 6 16:29:05 PDT 2021


spatel added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/fmul-pow.ll:105
 ; CHECK-LABEL: @pow_ab_reassoc_extra_use(
-; CHECK-NEXT:    [[TMP1:%.*]] = call double @llvm.pow.f64(double [[A:%.*]], double [[B:%.*]])
-; CHECK-NEXT:    [[MUL:%.*]] = fmul reassoc double [[TMP1]], [[TMP1]]
-; CHECK-NEXT:    call void @use(double [[TMP1]])
+; CHECK-NEXT:    [[POW:%.*]] = call double @llvm.pow.f64(double [[A:%.*]], double [[B:%.*]])
+; CHECK-NEXT:    [[MUL:%.*]] = fmul reassoc double [[POW]], [[POW]]
----------------
Do you know why you are getting this (and similar) test changes? They are cosmetic (value names differ), but I don't see this when testing locally.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102574/new/

https://reviews.llvm.org/D102574



More information about the llvm-commits mailing list