From fed74645be52ee260261d50fdc1ae59400863a00 Mon Sep 17 00:00:00 2001 From: Tyler Lanphear Date: Fri, 8 Sep 2023 15:20:24 -0700 Subject: [PATCH] [NFC][ValueTracking] Simplify check in llvm::isBitwiseValue(). Change `!isNonZero()` to `isZero()` for a minor readability improvement. --- llvm/lib/Analysis/ValueTracking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 79198b09d310b..c4153b824c37e 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -5315,7 +5315,7 @@ Value *llvm::isBytewiseValue(Value *V, const DataLayout &DL) { return UndefInt8; // Return Undef for zero-sized type. - if (!DL.getTypeStoreSize(V->getType()).isNonZero()) + if (DL.getTypeStoreSize(V->getType()).isZero()) return UndefInt8; Constant *C = dyn_cast(V);