[IR] remove 'NoNan' param when creating FP reductions
authorSanjay Patel <spatel@rotateright.com>
Wed, 30 Dec 2020 14:11:10 +0000 (09:11 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 30 Dec 2020 14:51:23 +0000 (09:51 -0500)
commite90ea76380d411bf81861228f23e4716ef337100
treee5716f55cfef7474c2a3c33f179c4c747f11dfdb
parentc6035a7bdf207dc3c1e12c041d5658770893fc68
[IR] remove 'NoNan' param when creating FP reductions

This is no-functional-change-intended (AFAIK, we can't
isolate this difference in a regression test).

That's because the callers should be setting the IRBuilder's
FMF field when creating the reduction and/or setting those
flags after creating. It doesn't make sense to override this
one flag alone.

This is part of a multi-step process to clean up the FMF
setting/propagation. See PR35538 for an example.
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/IR/IRBuilder.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp