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 28751 - MI Parser can't read in block frequencies
Summary: MI Parser can't read in block frequencies
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Common Code Generator Code (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
: 28774 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-28 05:35 PDT by Diana Picus
Modified: 2016-11-18 13:51 PST (History)
5 users (show)

See Also:
Fixed By Commit(s):


Attachments
mir file that can't be read by llc (1.85 KB, application/octet-stream)
2016-07-28 05:35 PDT, Diana Picus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diana Picus 2016-07-28 05:35:09 PDT
Created attachment 16829 [details]
mir file that can't be read by llc

llc -mtriple=aarch64-unknown buggy.mir              
error: buggy.mir:50:39: unexpected character '/'
    successors: %bb.1.true(0x40000000 / 0x80000000 = 50.00%), %bb.2.false(0x40000000 / 0x80000000 = 50.00%)
                                      ^

LLVM ERROR: Unable to initialize machine function


The input mir file was obtained by running llc -mtriple=aarch64-unknown -stop-after=block-placement <some .ll file> -o buggy.mir.

If we remove the block frequencies from the file, it manages to read it, but the output that it produces also contains block frequencies, so it can't be read back in.
Comment 1 David Majnemer 2016-07-29 18:42:56 PDT
*** Bug 28774 has been marked as a duplicate of this bug. ***
Comment 2 Geoff Berry 2016-11-18 13:51:46 PST
This should be fixed by r287368