[NFCI][GVN] Make IsValueFullyAvailableInBlock() readable - use enum class instead...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 19 Jul 2020 13:09:46 +0000 (16:09 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 19 Jul 2020 13:33:56 +0000 (16:33 +0300)
commitfb5577d4f883ba21a6fe048ffd59ca3659cdb491
tree6132542f3a18affde57b860995d9980ebc86ebd0
parent7393d7574c0911b2fd88dd10d093af3efe4dd0cf
[NFCI][GVN] Make IsValueFullyAvailableInBlock() readable - use enum class instead of magic numbers

This does not change any logic, it only wraps the magic 0/1/2/3 constants
into an enum class.
llvm/lib/Transforms/Scalar/GVN.cpp