LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1228 - [eh] branchfolding inf recursion with EH enabled
Summary: [eh] branchfolding inf recursion with EH enabled
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Common Code Generator Code (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks: 592
  Show dependency tree
 
Reported: 2007-02-25 19:00 PST by Anton Korobeynikov
Modified: 2010-02-22 12:52 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
Failed bytecode (15.08 KB, application/octet-stream)
2007-02-25 19:01 PST, Anton Korobeynikov
Details
another testcase, from the Ada runtime (1.33 KB, text/plain)
2007-04-30 10:38 PDT, Duncan Sands
Details
Updated testcase (2.15 KB, text/plain)
2007-04-30 10:44 PDT, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2007-02-25 19:00:02 PST
Attached bytecode (probably) cycles and consumes all available memory.

Reproduce with:

ulimit -v 512000
llc -enable-eh locale.bc
Comment 1 Anton Korobeynikov 2007-02-25 19:01:23 PST
Created attachment 688 [details]
Failed bytecode
Comment 2 Anton Korobeynikov 2007-02-25 19:01:58 PST
Err, not bytecode, but llc cycles :)
Comment 3 Jim Laskey 2007-02-26 07:54:24 PST
BranchFolding::OptimizeBlock recursing infinitely.  Likely problem handling landing pad.  This code is 
currently evolving.
Comment 4 Duncan Sands 2007-04-30 10:38:53 PDT
Created attachment 814 [details]
another testcase, from the Ada runtime
Comment 5 Anton Korobeynikov 2007-04-30 10:44:43 PDT
Created attachment 815 [details]
Updated testcase

Bytecode is not valid anymore due to format change. Attaching source.
Comment 6 Chris Lattner 2007-04-30 18:36:13 PDT
Fixed, patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070430/048754.html

Testcase here:
CodeGen/Generic/2007-04-30-LandingPadBranchFolding.ll

-Chris