From 3311a1f8f0d8a2c6d940802bbb95eba0b801a615 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 30 Jan 2009 02:49:14 +0000 Subject: Fix a post-RA scheduling dependency bug. If a MachineInstr doesn't have a memoperand but has an opcode that is known to load or store, assume its memory reference may alias *anything*, including stack slots which the compiler completely controls. To partially compensate for this, teach the ScheduleDAG building code to do basic getUnderlyingValue analysis. This greatly reduces the number of instructions that require restrictive dependencies. This code will need to be revisited when we start doing real alias analysis, but it should suffice for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63370 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BasicAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Analysis/BasicAliasAnalysis.cpp') diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 82514400b8..1002868e84 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -80,7 +80,7 @@ static bool isNoAliasCall(const Value *V) { /// ByVal and NoAlias Arguments /// NoAlias returns /// -static bool isIdentifiedObject(const Value *V) { +bool llvm::isIdentifiedObject(const Value *V) { if (isa(V) || isa(V) || isNoAliasCall(V)) return true; if (const Argument *A = dyn_cast(V)) -- cgit v1.2.3