SimplifyCFG: turn recursive GatherConstantCompares into iterative
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 19 Nov 2014 20:09:11 +0000 (20:09 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 19 Nov 2014 20:09:11 +0000 (20:09 +0000)
commit30bd0c753e0d683517a64a74c901e841db7f7bad
tree95a39493d04e0b8f15eb1f66c15cdcea693b7d8f
parent6e0f244d1f5c77a387d6ea78afbf6b7ffcde1a29
SimplifyCFG: turn recursive GatherConstantCompares into iterative

A long sequence of || or && could lead to a stack explosion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222384 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp