[llvm] 1b33b3f - [MIRParser] Simplify a string comparison (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 3 21:43:22 PST 2024
Author: Kazu Hirata
Date: 2024-02-03T21:43:10-08:00
New Revision: 1b33b3f27f8bf3902d754ed83da29f9a6f15e4e1
URL: https://github.com/llvm/llvm-project/commit/1b33b3f27f8bf3902d754ed83da29f9a6f15e4e1
DIFF: https://github.com/llvm/llvm-project/commit/1b33b3f27f8bf3902d754ed83da29f9a6f15e4e1.diff
LOG: [MIRParser] Simplify a string comparison (NFC)
Added:
Modified:
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
index 78d7e62797ce5..54f55623131b3 100644
--- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
@@ -607,7 +607,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
Twine(VReg.ID.Value) + "'");
Info.Explicit = true;
- if (StringRef(VReg.Class.Value).equals("_")) {
+ if (VReg.Class.Value == "_") {
Info.Kind = VRegInfo::GENERIC;
Info.D.RegBank = nullptr;
} else {
More information about the llvm-commits
mailing list