aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LoadValueNumbering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/LoadValueNumbering.cpp')
-rw-r--r--lib/Analysis/LoadValueNumbering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp
index 16e79a1286..721fe47da8 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<VAArgInst>(I)) {
+ LoadInvalidatedInBBBefore = true;
+ break;
+ }
}
// Figure out if the load is invalidated between the load and the exit of the