Fix a bug in codegenprep where it was losing track of values OptimizeMemoryInst
authorNick Lewycky <nicholas@mxc.ca>
Wed, 8 May 2013 09:00:10 +0000 (09:00 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 8 May 2013 09:00:10 +0000 (09:00 +0000)
commitae9f07e0b8332181e9a79cffc7dea99f3bc9bea8
tree31baafa06526de75c1f7d111feab402b68567559
parent363160a6be82df343fa60aa09d9d8f8f44605529
Fix a bug in codegenprep where it was losing track of values OptimizeMemoryInst
by switching to a ValueMap. Patch by Andrea DiBiagio!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/X86/codegen-prepare.ll [new file with mode: 0644]