[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:12:36 PST 2017


majnemer accepted this revision.
majnemer added a comment.
This revision is now accepted and ready to land.

LGTM



================
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
----------------
This test does not provide additional coverage.


https://reviews.llvm.org/D28237





More information about the llvm-commits mailing list