[PATCH] D28237: InstCombine: fdiv -x, -y -> fdiv x, y
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 14:14:56 PST 2017
arsenm added inline comments.
================
Comment at: test/Transforms/InstCombine/fdiv.ll:62-69
+; CHECK-LABEL @fdiv_fneg_fneg_fast(
+; CHECK: %div = fdiv fast float %x, %y
+define float @fdiv_fneg_fneg_fast(float %x, float %y) {
+ %x.fneg = fsub float -0.0, %x
+ %y.fneg = fsub float -0.0, %y
+ %div = fdiv fast float %x.fneg, %y.fneg
+ ret float %div
----------------
majnemer wrote:
> This test does not provide additional coverage.
This checks that the fast math falls are preserved
https://reviews.llvm.org/D28237
More information about the llvm-commits
mailing list