[PATCH] D28237: InstCombine: fdiv -x, -y -> fdiv x, y
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 14:34:52 PST 2017
majnemer 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
----------------
arsenm wrote:
> majnemer wrote:
> > This test does not provide additional coverage.
> This checks that the fast math falls are preserved
Ah, right...
https://reviews.llvm.org/D28237
More information about the llvm-commits
mailing list