From f23eb70e033e6de28b45c3b2c99e174e940f0b5a Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Sun, 24 Jul 2016 01:50:07 +0000 Subject: [PATCH] [MSSA] Remove useless assert. NFC. liveOnEntry is always a MemoryDef; asserting that a MemoryPhi isn't liveOnEntry, while correct, isn't very helpful. :) llvm-svn: 276542 --- llvm/lib/Transforms/Utils/MemorySSA.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/MemorySSA.cpp b/llvm/lib/Transforms/Utils/MemorySSA.cpp index d7dbc51..e304084 100644 --- a/llvm/lib/Transforms/Utils/MemorySSA.cpp +++ b/llvm/lib/Transforms/Utils/MemorySSA.cpp @@ -368,7 +368,6 @@ class ClobberWalker { /// keep track of this information for us, and allow us O(1) lookups of this /// info. MemoryAccess *getWalkTarget(const MemoryPhi *From) { - assert(!MSSA.isLiveOnEntryDef(From) && "liveOnEntry has no target."); assert(From->getNumOperands() && "Phi with no operands?"); BasicBlock *BB = From->getBlock(); -- 2.7.4