aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-04 18:26:18 +0000
committerOwen Anderson <resistor@mac.com>2007-07-04 18:26:18 +0000
commitdf30b63663ad25d0d04fa8a0e30b4636cd0b3038 (patch)
treee71dee20767281fa0d5cfdcdcf1851788e5de445 /lib
parent9eee94c5f71ffd7429a1e4b2664622f630988766 (diff)
downloadexternal_llvm-df30b63663ad25d0d04fa8a0e30b4636cd0b3038.zip
external_llvm-df30b63663ad25d0d04fa8a0e30b4636cd0b3038.tar.gz
external_llvm-df30b63663ad25d0d04fa8a0e30b4636cd0b3038.tar.bz2
Fix a typo that was killing GVNPRE of select instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/GVNPRE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp
index 33926ea..5d52aa4 100644
--- a/lib/Transforms/Scalar/GVNPRE.cpp
+++ b/lib/Transforms/Scalar/GVNPRE.cpp
@@ -1040,7 +1040,7 @@ void GVNPRE::topo_sort(SmallPtrSet<Value*, 16>& set, std::vector<Value*>& vec) {
stack.push_back(r);
else if (m != 0 && isa<Instruction>(m) &&
visited.count(m) == 0)
- stack.push_back(r);
+ stack.push_back(m);
else {
vec.push_back(e);
visited.insert(e);