[llvm-commits] [llvm] r64278 - in /llvm/trunk: lib/Transforms/Utils/BasicBlockUtils.cpp lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/dbginfo.ll

Devang Patel dpatel at apple.com
Mon Feb 23 16:09:53 PST 2009


On Feb 10, 2009, at 9:11 PM, Chris Lattner wrote:

>
> On Feb 10, 2009, at 5:29 PM, Devang Patel wrote:
>
>> Author: dpatel
>> Date: Tue Feb 10 19:29:06 2009
>> New Revision: 64278
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=64278&view=rev
>> Log:
>> If llvm.dbg.region.end is disappearing then remove corresponding
>> llvm.dbg.func.start also.
>
> Why?  The dbg.region.end may be removed in cases where the end of
> function is unreachable, e.g.:
>
> void foo() {
>   while (1)
>     whatever();
> }
>
> I still would like to step through foo.

OK. Right thing to do is move region.end into the pred while folding  
unconditional branch. Fixed in rev. 65353.
-
Devang






More information about the llvm-commits mailing list