[llvm] 82240e0 - [TableGen] CodeGenDAGPatterns - (style) remove if-else chain when if block always returns. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 16 10:26:43 PDT 2021
Author: Simon Pilgrim
Date: 2021-04-16T18:26:33+01:00
New Revision: 82240e07ebdc4c0f492e31a1e93d228d06120f8e
URL: https://github.com/llvm/llvm-project/commit/82240e07ebdc4c0f492e31a1e93d228d06120f8e
DIFF: https://github.com/llvm/llvm-project/commit/82240e07ebdc4c0f492e31a1e93d228d06120f8e.diff
LOG: [TableGen] CodeGenDAGPatterns - (style) remove if-else chain when if block always returns. NFCI.
Added:
Modified:
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index ce6e090ee584..ef130b46b034 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -1252,7 +1252,7 @@ StringRef TreePredicateFn::getImmType() const {
StringRef TreePredicateFn::getImmTypeIdentifier() const {
if (immCodeUsesAPInt())
return "APInt";
- else if (immCodeUsesAPFloat())
+ if (immCodeUsesAPFloat())
return "APFloat";
return "I64";
}
More information about the llvm-commits
mailing list