OSDN Git Service

This patch addresses a problem with the Post RA scheduler generating an
authorPreston Gurd <preston.gurd@intel.com>
Mon, 29 Oct 2012 15:01:23 +0000 (15:01 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Mon, 29 Oct 2012 15:01:23 +0000 (15:01 +0000)
commita836563e3208ad0b74019dc33ad361d3eb72f178
tree659bf7512d46159c37c1002f242b6c17bf2d9d18
parent01d013ec043407a558b8b87f75ec207336e8a4ae
This patch addresses a problem with the Post RA scheduler generating an
incorrect instruction sequence due to it not being aware that an
inline assembly instruction may reference memory.

This patch fixes the problem by causing the scheduler to always assume that any
inline assembly code instruction could access memory. This is necessary because
the internal representation of the inline instruction does not include
any information about memory accesses.

This should fix PR13504.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166929 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
test/CodeGen/X86/inlineasm-sched-bug.ll [new file with mode: 0644]