[llvm-commits] CVS: llvm/lib/Analysis/LoadValueNumbering.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Mon Jun 20 08:02:17 PDT 2005



Changes in directory llvm/lib/Analysis:

LoadValueNumbering.cpp updated: 1.31 -> 1.32
---
Log message:

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.

---
Diffs of the changes:  (+4 -0)

 LoadValueNumbering.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Analysis/LoadValueNumbering.cpp
diff -u llvm/lib/Analysis/LoadValueNumbering.cpp:1.31 llvm/lib/Analysis/LoadValueNumbering.cpp:1.32
--- llvm/lib/Analysis/LoadValueNumbering.cpp:1.31	Thu Apr 21 16:04:58 2005
+++ llvm/lib/Analysis/LoadValueNumbering.cpp	Mon Jun 20 10:02:05 2005
@@ -328,6 +328,10 @@
       LoadInvalidatedInBBBefore = true;
       break;
     }
+    if (dyn_cast<VAArgInst>(I)) {
+      LoadInvalidatedInBBBefore = true;
+      break;
+    }
   }
 
   // Figure out if the load is invalidated between the load and the exit of the






More information about the llvm-commits mailing list