[llvm-commits] [llvm] r128452 - /llvm/trunk/lib/CodeGen/StackProtector.cpp
Bill Wendling
isanbard at gmail.com
Tue Mar 29 00:34:33 PDT 2011
On Mar 29, 2011, at 12:24 AM, Cameron Zwarich wrote:
> On 2011-03-29, at 12:06 AM, Bill Wendling wrote:
>
>> On Mar 28, 2011, at 10:35 PM, Eli Friedman wrote:
>>
>>> On Mon, Mar 28, 2011 at 10:15 PM, Bill Wendling <isanbard at gmail.com> wrote:
>>>
>>> That isn't a safe way to query whether a block is usable... if you
>>> have domtree, why not just use "DT->isReachableFromEntry(BB)"?
>>>
>> It's probably rather slow. Why isn't this safe?
>
> You can have an unreachable loop. Using isReachableFromEntry() was fast the last time I checked. It just checks whether the BB has a DomTreeNode.
>
Ah! Okay. (Though it seems like the isReachableFromEntry could call a slower routine, or maybe I misread it...) Well, the logic was gross and didn't work anyway. So I reworked it. It should now work and be less gross.
-bw
More information about the llvm-commits
mailing list