[Reassociate][NFC] Consistent checking for FastMathFlags suitability
authorWarren Ristow <warren.ristow@sony.com>
Mon, 25 Jul 2022 00:44:30 +0000 (17:44 -0700)
committerWarren Ristow <warren.ristow@sony.com>
Mon, 25 Jul 2022 00:44:30 +0000 (17:44 -0700)
commit3089b411a4657add406279f2c0a1825576b6561b
tree3d89d0c04769aaff166c153c68a6b6fc8fe797c2
parentacf648b5e91b6ccbb6e29a6db344e8d8ae0fbdb7
[Reassociate][NFC] Consistent checking for FastMathFlags suitability

In D129523, it was noted that the approach to check whether a value can
have FastMathFlags was done in different ways, and they should be made
consistent.  This patch makes minor changes to fix that.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D130408
llvm/lib/Transforms/Scalar/Reassociate.cpp