[PATCH] D86801: [InstCombine] add extra-use tests for fmul+sqrt; NFC
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 13:13:23 PDT 2020
spatel added inline comments.
Herald added a subscriber: danielkiss.
================
Comment at: llvm/test/Transforms/InstCombine/fmul-sqrt.ll:121
+; CHECK-NEXT: [[RSQRT:%.*]] = fdiv fast double 1.000000e+00, [[SQRT]]
+; CHECK-NEXT: [[RES:%.*]] = fmul reassoc double [[RSQRT]], [[X:%.*]]
+; CHECK-NEXT: store double [[RSQRT]], double* %p
----------------
This is not providing the test coverage that you intended - notice that the operands of fmul are swapped.
Please see my comment about complexity-based canonicalization in D86395.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86801/new/
https://reviews.llvm.org/D86801
More information about the llvm-commits
mailing list