aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCombiner.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-07-14 10:03:58 -0700
committerCraig Topper <craig.topper@sifive.com>2022-07-14 10:03:58 -0700
commit0e718443c71ee9501d088e792cf5eb81aec2eda0 (patch)
treebb510299c396ea6873aba5d022f470e91433047a /llvm/lib/CodeGen/MachineCombiner.cpp
parentd2792e7d37c4b454a6b052cd569ff13ed7f22159 (diff)
downloadllvm-0e718443c71ee9501d088e792cf5eb81aec2eda0.zip
llvm-0e718443c71ee9501d088e792cf5eb81aec2eda0.tar.gz
llvm-0e718443c71ee9501d088e792cf5eb81aec2eda0.tar.bz2
[SimplifyIndVar] Use enum class for ExtendKind. NFC
I happened to notice a two places where the enum was being pass directly to the bool IsSigned argument of createExtendInst. This was functionally ok since SignExtended in the enum has value of 1, but the code shouldn't rely on that. Using an enum class prevents the enum from being convertible to bool, but does make writing the enum values more verbose. Since we now have to write ExtendKind:: in front of them, I've shortened the names of ZeroExtended and SignExtended. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D129733
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
0 files changed, 0 insertions, 0 deletions