[llvm] [VPlan] Simplify (X && Y) || (X && !Y) -> X. (PR #89386)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 03:54:50 PDT 2024
================
@@ -69,10 +69,8 @@ template <unsigned BitWidth = 0> struct specific_intval {
C->getSplatValue(/*AllowPoison=*/false));
if (!CI)
return false;
-
- assert((BitWidth == 0 || CI->getBitWidth() == BitWidth) &&
- "Trying the match constant with unexpected bitwidth.");
- return APInt::isSameValue(CI->getValue(), Val);
+ return (BitWidth == 0 || CI->getBitWidth() == BitWidth) &&
+ APInt::isSameValue(CI->getValue(), Val);
----------------
fhahn wrote:
Restored, thanks!
https://github.com/llvm/llvm-project/pull/89386
More information about the llvm-commits
mailing list