[llvm] r276542 - [MSSA] Remove useless assert. NFC.
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 23 18:50:07 PDT 2016
Author: gbiv
Date: Sat Jul 23 20:50:07 2016
New Revision: 276542
URL: http://llvm.org/viewvc/llvm-project?rev=276542&view=rev
Log:
[MSSA] Remove useless assert. NFC.
liveOnEntry is always a MemoryDef; asserting that a MemoryPhi isn't
liveOnEntry, while correct, isn't very helpful. :)
Modified:
llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
Modified: llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp?rev=276542&r1=276541&r2=276542&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp Sat Jul 23 20:50:07 2016
@@ -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();
More information about the llvm-commits
mailing list