Skip to content

empty MBB results in incorrect MBB2IdxMap and Idx2MBBMap #2604

@llvmbot

Description

@llvmbot
Bugzilla Link 2232
Resolution FIXED
Resolved on Aug 21, 2008 19:03
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor

Extended Description

In the LiveIntervalAnalysis::runOnMachineFunction, there is a code to
compute the MBB2IdxMap and Idx2MBBMap, by remembering for each MBB its start and end instruction numbers.

If an MBB is empty, the end index will be larger than the start in MBB2IdxMap, and multiple entries of .first Idx2MBBMap will identical. On some platforms this causes an assert later (in e.g. LiveIntervals::findLiveinMBBs std::lower_bound), and possibly incorrect search behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions