[ManagedMemoryRewrite] Iterate over operands of the expanded instruction, not the...
commit4843bb76ad1103af3029298d1050ed2f2a40ae69
authorSiddharth Bhat <siddu.druid@gmail.com>
Sat, 19 Aug 2017 20:52:11 +0000 (19 20:52 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Sat, 19 Aug 2017 20:52:11 +0000 (19 20:52 +0000)
tree337289f3ed496e4801f9c2dc0f6d512562b249ab
parent2ba42754a31eb4ec29be889142571b2dcaae21fe
[ManagedMemoryRewrite] Iterate over operands of the expanded instruction, not the constantexpr itself.

- We should iterate over `I`, which is `Cur` expanded out to an
instruction, and not `Cur` itself.

- This is a bugfix.

Differential Revision: https://reviews.llvm.org/D36923

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@311261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ManagedMemoryRewrite.cpp