OSDN Git Service

Fix a case where SROA did not correctly detect dead PHI or selects due
authorChandler Carruth <chandlerc@gmail.com>
Tue, 25 Sep 2012 10:03:40 +0000 (10:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 25 Sep 2012 10:03:40 +0000 (10:03 +0000)
commitc303463dcceb6a3b15e6f4d11d7c31c1ac2ce276
tree39c283ce8ddbc51a15c1d9b2a2670e25c7ac3ed7
parent00edf4c1d8a691543faf5adf7b05558497d38abb
Fix a case where SROA did not correctly detect dead PHI or selects due
to chains or cycles between PHIs and/or selects. Also add a couple of
really nice test cases reduced from Kostya's reports in PR13905 and
PR13906. Both are fixed by this patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/phi-and-select.ll