[llvm] 7cbc5df - [X86] X86TargetLowering::isSafeMemOpType - break if-else chain. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 04:15:21 PST 2021
Author: Simon Pilgrim
Date: 2021-03-04T12:15:08Z
New Revision: 7cbc5df438bb9cac98a62ab72be8807d8488c334
URL: https://github.com/llvm/llvm-project/commit/7cbc5df438bb9cac98a62ab72be8807d8488c334
DIFF: https://github.com/llvm/llvm-project/commit/7cbc5df438bb9cac98a62ab72be8807d8488c334.diff
LOG: [X86] X86TargetLowering::isSafeMemOpType - break if-else chain. NFCI.
All if-else blocks return - fixes clang-tidy warning.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 51f886ee45e1..a8e8bd3257b3 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -2318,7 +2318,7 @@ EVT X86TargetLowering::getOptimalMemOpType(
bool X86TargetLowering::isSafeMemOpType(MVT VT) const {
if (VT == MVT::f32)
return X86ScalarSSEf32;
- else if (VT == MVT::f64)
+ if (VT == MVT::f64)
return X86ScalarSSEf64;
return true;
}
More information about the llvm-commits
mailing list