commit | 6eb095d7ae616b6aaa1330ea4a47dc79ae4c1b23 | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Mon May 11 23:09:46 2015 +0000 |
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Mon May 11 23:09:46 2015 +0000 |
tree | 571126eb5c8e403a7c83a59ae9583fe3965db9fc | |
parent | 12a7fbc55c1b28eafeae34d3af8cf98ec24da689 [diff] |
[MemCpyOpt] Look at any dependency -not just source- for memset+memcpy. This fixes another miscompile introduced by r235232: when there was a dependency on the memcpy destination other than the memset, we would ignore it, because we only looked at the source dependency. It was a mistake to use SrcDepInfo. Instead, just use DepInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237066 91177308-0d34-0410-b5e6-96231b3b80d8