[PATCH] D143677: [ValueTracking] Replace an always false condition with an assert.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 15:19:50 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG68c906811bcb: [ValueTracking] Replace an always false condition with an assert. NFC (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143677/new/
https://reviews.llvm.org/D143677
Files:
llvm/lib/Analysis/ValueTracking.cpp
Index: llvm/lib/Analysis/ValueTracking.cpp
===================================================================
--- llvm/lib/Analysis/ValueTracking.cpp
+++ llvm/lib/Analysis/ValueTracking.cpp
@@ -2302,8 +2302,7 @@
static bool isKnownNonNullFromDominatingCondition(const Value *V,
const Instruction *CtxI,
const DominatorTree *DT) {
- if (isa<Constant>(V))
- return false;
+ assert(!isa<Constant>(V) && "Called for constant?");
if (!CtxI || !DT)
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143677.496259.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230209/9491cf04/attachment.bin>
More information about the llvm-commits
mailing list