[llvm] 11fdaff - [TableGen] Use InfoByHwMode::getSimple() in place of *InfoByHwMode::begin(). NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 8 12:09:15 PDT 2023
Author: Craig Topper
Date: 2023-04-08T12:07:01-07:00
New Revision: 11fdaffc3e17f70769fbcf547dfd7c717484a402
URL: https://github.com/llvm/llvm-project/commit/11fdaffc3e17f70769fbcf547dfd7c717484a402
DIFF: https://github.com/llvm/llvm-project/commit/11fdaffc3e17f70769fbcf547dfd7c717484a402.diff
LOG: [TableGen] Use InfoByHwMode::getSimple() in place of *InfoByHwMode::begin(). NFC
Added:
Modified:
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index a781746cba0f..6b7922e834c4 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -218,7 +218,7 @@ bool TypeSetByHwMode::operator==(const TypeSetByHwMode &VTS) const {
bool IsSimple = isSimple();
bool VTSIsSimple = VTS.isSimple();
if (IsSimple && VTSIsSimple)
- return *begin() == *VTS.begin();
+ return getSimple() == VTS.getSimple();
// Speedup: We have a default if the set is simple.
bool HaveDefault = IsSimple || hasDefault();
More information about the llvm-commits
mailing list