Similar to fsub, fdiv can also be vectorized using fmul.
Also http://llvm.org/viewvc/llvm-project?view=revision&revision=215200
Paths
| Differential D34078
Enable support for floating-point division reductions ClosedPublic Authored by yuyichao on Jun 10 2017, 5:52 AM.
Details Summary Similar to fsub, fdiv can also be vectorized using fmul. Also http://llvm.org/viewvc/llvm-project?view=revision&revision=215200
Diff Detail
Event TimelineComment Actions I suggest to add one more test that shows that vectorization does not happen when the reduction variable is the second argument of fdiv. This revision was landed with ongoing or failed builds. Closed by commit rG4bc88a0e9a2e: Enable support for floating-point division reductions (authored by yuyichao, committed by vchuravy). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 307219 llvm/lib/Analysis/IVDescriptors.cpp
llvm/test/Transforms/LoopVectorize/float-reduction.ll
|