[llvm-commits] [llvm] r66075 - /llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp
Bill Wendling
isanbard at gmail.com
Wed Mar 4 13:33:21 PST 2009
Author: void
Date: Wed Mar 4 15:33:21 2009
New Revision: 66075
URL: http://llvm.org/viewvc/llvm-project?rev=66075&view=rev
Log:
--- Merging (from foreign repository) r66073 into '.':
U lib/Transforms/Scalar/ADCE.cpp
Re-commit 65975 and a fix for the problem that
was causing llvm-gcc to fail to build. I've
verified it bootstraps now; good enough for me.
Modified:
llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp
Modified: llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp?rev=66075&r1=66074&r2=66075&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Scalar/ADCE.cpp Wed Mar 4 15:33:21 2009
@@ -18,6 +18,7 @@
#include "llvm/Transforms/Scalar.h"
#include "llvm/BasicBlock.h"
#include "llvm/Instructions.h"
+#include "llvm/IntrinsicInst.h"
#include "llvm/Pass.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/Compiler.h"
@@ -55,6 +56,7 @@
// Collect the set of "root" instructions that are known live.
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
if (isa<TerminatorInst>(I.getInstructionIterator()) ||
+ isa<DbgInfoIntrinsic>(I.getInstructionIterator()) ||
I->mayWriteToMemory()) {
alive.insert(I.getInstructionIterator());
worklist.push_back(I.getInstructionIterator());
More information about the llvm-commits
mailing list