From df30b63663ad25d0d04fa8a0e30b4636cd0b3038 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 4 Jul 2007 18:26:18 +0000 Subject: 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 --- lib/Transforms/Scalar/GVNPRE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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& set, std::vector& vec) { stack.push_back(r); else if (m != 0 && isa(m) && visited.count(m) == 0) - stack.push_back(r); + stack.push_back(m); else { vec.push_back(e); visited.insert(e); -- cgit v1.1