diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-07-14 10:03:58 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-07-14 10:03:58 -0700 |
commit | 0e718443c71ee9501d088e792cf5eb81aec2eda0 (patch) | |
tree | bb510299c396ea6873aba5d022f470e91433047a /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | d2792e7d37c4b454a6b052cd569ff13ed7f22159 (diff) | |
download | llvm-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