diff options
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 946c33eea4..bd13ee59b3 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1165,7 +1165,10 @@ bool GVN::processLoad(LoadInst *L, SmallVectorImpl<Instruction*> &toErase) { WriteAsOperand(*DOUT.stream(), L); Instruction *I = dep.getInst(); DOUT << " is clobbered by " << I->getOpcodeName() << " instruction "; - WriteAsOperand(*DOUT.stream(), I, false); + if (I->getType()->isFirstClassType()) + WriteAsOperand(*DOUT.stream(), I, false); + else + DOUT << *I; DOUT << "\n"; ); return false; |