[llvm-commits] [llvm] r66073 - in /llvm/trunk: include/llvm/Intrinsics.td lib/Transforms/Scalar/ADCE.cpp
Dale Johannesen
dalej at apple.com
Wed Mar 4 13:24:04 PST 2009
Author: johannes
Date: Wed Mar 4 15:24:04 2009
New Revision: 66073
URL: http://llvm.org/viewvc/llvm-project?rev=66073&view=rev
Log:
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/trunk/include/llvm/Intrinsics.td
llvm/trunk/lib/Transforms/Scalar/ADCE.cpp
Modified: llvm/trunk/include/llvm/Intrinsics.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Intrinsics.td?rev=66073&r1=66072&r2=66073&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Intrinsics.td (original)
+++ llvm/trunk/include/llvm/Intrinsics.td Wed Mar 4 15:24:04 2009
@@ -261,6 +261,7 @@
//
// None of these intrinsics accesses memory at all.
+let Properties = [IntrNoMem] in {
def int_dbg_stoppoint : Intrinsic<[llvm_void_ty],
[llvm_i32_ty, llvm_i32_ty,
llvm_descriptor_ty]>;
@@ -269,6 +270,7 @@
def int_dbg_func_start : Intrinsic<[llvm_void_ty], [llvm_descriptor_ty]>;
def int_dbg_declare : Intrinsic<[llvm_void_ty],
[llvm_descriptor_ty, llvm_descriptor_ty]>;
+}
//===------------------ Exception Handling Intrinsics----------------------===//
//
Modified: llvm/trunk/lib/Transforms/Scalar/ADCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ADCE.cpp?rev=66073&r1=66072&r2=66073&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ADCE.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ADCE.cpp Wed Mar 4 15:24:04 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