This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Make sure we preserve fast math flags when folding fp instructions into phi nodes
ClosedPublic

Authored by craig.topper on Apr 4 2017, 5:37 PM.

Details

Summary

I noticed in the select folding code that we copied fast math flags, but did not do the same for the similar handling in phi nodes. This patch fixes that to do the same thing as select

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Apr 4 2017, 5:37 PM
davide accepted this revision.Apr 9 2017, 3:40 PM

LGTM

This revision is now accepted and ready to land.Apr 9 2017, 3:40 PM
This revision was automatically updated to reflect the committed changes.