commit | 0c1f6c9fabfcaf5015dd99fb6871df050a8777c8 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Fri Jul 20 08:19:20 2007 +0000 |
committer | Owen Anderson <resistor@mac.com> | Fri Jul 20 08:19:20 2007 +0000 |
tree | 757a12fd9f192e96cadfd531e92e83bd09adbbf5 | |
parent | 3c5651e8878f3df18c398463f0cb8d49e321c76b [diff] [blame] |
Fix a bug where we were marking GEP expressions with the wrong opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40085 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index 9c7c8c2..80f745f 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp
@@ -418,7 +418,7 @@ e.secondVN = 0; e.thirdVN = 0; e.type = G->getType(); - e.opcode = Expression::SELECT; + e.opcode = Expression::GEP; for (GetElementPtrInst::op_iterator I = G->idx_begin(), E = G->idx_end(); I != E; ++I)