Refactoring for all constant cases which require AllowNewConst and some staging for future fmf usage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
10355 ↗ | (On Diff #151746) | Both this if (Options.UnsafeFPMath && AllowNewConst) test and the test a dozen lines above are the same. Why break it into two sections? |
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
10355 ↗ | (On Diff #151746) | Ahhhh... I see, because one is in prep for NaNs, and one for reassoc/nsz. |
Comment Actions
I'm not sure how to test that potential late constant creation problem (see rL334977), but this change looks safe and does what the comment says, so LGTM.