[MSSA] Remove useless assert. NFC.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sun, 24 Jul 2016 01:50:07 +0000 (01:50 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sun, 24 Jul 2016 01:50:07 +0000 (01:50 +0000)
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

index d7dbc51..e304084 100644 (file)
@@ -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();