[llvm] 80e57a8 - [X86][InstCombine] Avoid -Wparentheses warnings introduced in D145220, NFCI
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 22:51:06 PDT 2023
Author: Shengchen Kan
Date: 2023-04-06T13:50:54+08:00
New Revision: 80e57a8e7d6e112a5a799e85060588461791a7dc
URL: https://github.com/llvm/llvm-project/commit/80e57a8e7d6e112a5a799e85060588461791a7dc
DIFF: https://github.com/llvm/llvm-project/commit/80e57a8e7d6e112a5a799e85060588461791a7dc.diff
LOG: [X86][InstCombine] Avoid -Wparentheses warnings introduced in D145220, NFCI
Added:
Modified:
llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp b/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
index 1abe1e84df28..e46fc034cc26 100644
--- a/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
+++ b/llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
@@ -1620,9 +1620,8 @@ static Value *simplifyTernarylogic(const IntrinsicInst &II,
break;
}
- assert(Res.first == nullptr ||
- Res.second == Imm &&
- "Simplification of ternary logic does not verify!");
+ assert((Res.first == nullptr || Res.second == Imm) &&
+ "Simplification of ternary logic does not verify!");
return Res.first;
}
More information about the llvm-commits
mailing list