commit | f6118416e18c1b026f82d2d9c95ca18b10a59b0f | [log] [tgz] |
---|---|---|
author | Wei Mi <wmi@google.com> | Thu Feb 04 19:17:33 2016 +0000 |
committer | Wei Mi <wmi@google.com> | Thu Feb 04 19:17:33 2016 +0000 |
tree | 204d74667355929b2efbf44a7df06be25fc2de5c | |
parent | 0e7060e78c02840a9c0386086821a8c006862da7 [diff] |
Fix a regression for r259736. When SCEV expansion tries to reuse an existing value, it is needed to ensure that using the Value at the InsertPt will not break LCSSA. The fix adds a check that InsertPt is either inside the candidate Value's parent loop, or the candidate Value's parent loop is nullptr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259815 91177308-0d34-0410-b5e6-96231b3b80d8