From e3e1739b7dfbc366dcf0bde1548086d172968a1a Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Mon, 20 Jun 2005 15:02:05 +0000 Subject: [PATCH] prevent GCSE from forwarding stores to loads around vaarg. This is uggly, and I am trying to fix the AliasInfo, as it should catch the problem instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22266 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/LoadValueNumbering.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp index 16e79a1286f..721fe47da88 100644 --- a/lib/Analysis/LoadValueNumbering.cpp +++ b/lib/Analysis/LoadValueNumbering.cpp @@ -328,6 +328,10 @@ void LoadVN::getEqualNumberNodes(Value *V, LoadInvalidatedInBBBefore = true; break; } + if (dyn_cast(I)) { + LoadInvalidatedInBBBefore = true; + break; + } } // Figure out if the load is invalidated between the load and the exit of the -- 2.34.1