commit | cd94fc982ab373dbd03f651db658930cd5f4953c | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Wed Jul 04 18:26:18 2007 +0000 |
committer | Owen Anderson <resistor@mac.com> | Wed Jul 04 18:26:18 2007 +0000 |
tree | b4e9cc90c7fc8a597342745ee4416520e781d0bb | |
parent | 664e260a9c1c1a1feb0e821b41c155ef2c764553 [diff] [blame] |
Fix a typo that was killing GVNPRE of select instructions. llvm-svn: 37871
diff --git a/llvm/lib/Transforms/Scalar/GVNPRE.cpp b/llvm/lib/Transforms/Scalar/GVNPRE.cpp index 33926ea..5d52aa4 100644 --- a/llvm/lib/Transforms/Scalar/GVNPRE.cpp +++ b/llvm/lib/Transforms/Scalar/GVNPRE.cpp
@@ -1040,7 +1040,7 @@ 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);