Fixed an infinite loop in the block escape in analysis in ObjCARC caused by 2x blocks...
authorMichael Gottesman <mgottesman@apple.com>
Sun, 13 Jan 2013 22:12:06 +0000 (22:12 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sun, 13 Jan 2013 22:12:06 +0000 (22:12 +0000)
commitf15c0bb49593c08c06380bd6d26f06591c3674af
treeb256ebb9162aacee21d65335f8bb3a975d515438
parent765396f2f05f7c95557f1e0b5c3bf7026b2ef911
Fixed an infinite loop in the block escape in analysis in ObjCARC caused by 2x blocks each assigned a value via a phi-node causing each to depend on the other.

A test case is provided as well.

llvm-svn: 172368
llvm/lib/Transforms/Scalar/ObjCARC.cpp
llvm/test/Transforms/ObjCARC/dont-infinite-loop-during-block-escape-analysis.ll [new file with mode: 0644]