[MSSA] Print memory phis when inspecting walker.
This makes the MemorySSA and MemorySSA Walker printers consistent. Invokation `-print<memoryssa-walker>` should also have the MemoryPhis.
This commit is contained in:
parent
08075a7ee8
commit
50d41f3e0d
|
@ -130,6 +130,12 @@ public:
|
|||
MemorySSAWalkerAnnotatedWriter(MemorySSA *M)
|
||||
: MSSA(M), Walker(M->getWalker()) {}
|
||||
|
||||
void emitBasicBlockStartAnnot(const BasicBlock *BB,
|
||||
formatted_raw_ostream &OS) override {
|
||||
if (MemoryAccess *MA = MSSA->getMemoryAccess(BB))
|
||||
OS << "; " << *MA << "\n";
|
||||
}
|
||||
|
||||
void emitInstructionAnnot(const Instruction *I,
|
||||
formatted_raw_ostream &OS) override {
|
||||
if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) {
|
||||
|
|
Loading…
Reference in a new issue