implement some fixme's: when deleting an instruction with
authorChris Lattner <sabre@nondot.org>
Sat, 29 Nov 2008 22:02:15 +0000 (22:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 29 Nov 2008 22:02:15 +0000 (22:02 +0000)
commit0ec48ddef20deaa061152d86645972122beef605
treebf028a9dfff1cf902a149aa018467bc945a130f4
parent396a4a55e535728e2023aa331401c1a2b782cb9a
implement some fixme's: when deleting an instruction with
an entry in the nonlocal deps map, don't reset entries
referencing that instruction to [dirty, null], instead, set
them to [dirty,next] where next is the instruction after the
deleted one.  Use this information in the non-local deps
code to avoid rescanning entire blocks.

This speeds up GVN slightly by avoiding pointless work.  On
403.gcc this makes GVN 1.5% faster.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60256 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryDependenceAnalysis.h
lib/Analysis/MemoryDependenceAnalysis.cpp