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 13504 - INLINEASM doesn't implement mayLoad and mayStore
Summary: INLINEASM doesn't implement mayLoad and mayStore
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:
Depends on:
Blocks:
 
Reported: 2012-08-01 10:09 PDT by Sergey Galanov
Modified: 2012-10-30 14:13 PDT (History)
7 users (show)

See Also:
Fixed By Commit(s):


Attachments
Example code (788 bytes, application/octet-stream)
2012-08-01 10:09 PDT, Sergey Galanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Galanov 2012-08-01 10:09:04 PDT
Created attachment 8981 [details]
Example code

mayLoad and mayStore always return false for INLINEASM instructions, even when there is a memory constraint.
One consequence is that post-RA instruction scheduler builds incorrect graph for an example from attachment (it lacks the required MOV32mr->INLINEASM dependence).
Comment 1 Bob Wilson 2012-08-06 11:31:06 PDT
This is also being tracked in <rdar://problem/12033048>
Comment 2 Chad Rosier 2012-10-30 14:13:39 PDT
Committed llvm revision 167040.