[llvm-commits] [llvm] r72567 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Torok Edwin
edwintorok at gmail.com
Fri May 29 03:28:57 PDT 2009
Author: edwin
Date: Fri May 29 05:28:44 2009
New Revision: 72567
URL: http://llvm.org/viewvc/llvm-project?rev=72567&view=rev
Log:
for instructions with void type we have no choice but print the instruction as
is, otherwise we get a <badref>.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=72567&r1=72566&r2=72567&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Fri May 29 05:28:44 2009
@@ -1165,7 +1165,10 @@
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;
More information about the llvm-commits
mailing list