mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Stricter check for the memory access.
The current pattern would trigger for scheduling changes of the post-load computation, since those are commutable with the inline asm. Avoid this by explicitly check the order of load vs asm block. llvm-svn: 367180
This commit is contained in:
parent
a0b4d6a6d3
commit
cd5d699ac4
@ -1,7 +1,9 @@
|
||||
; PR13504
|
||||
; RUN: llc -mtriple=i686-- -mcpu=atom < %s | FileCheck %s
|
||||
; Check that treemap is read before the asm statement.
|
||||
; CHECK: movl 8(%{{esp|ebp}})
|
||||
; CHECK: bsfl
|
||||
; CHECK-NOT: movl
|
||||
; CHECK-NOT: movl 8(%{{esp|ebp}})
|
||||
|
||||
define i32 @foo(i32 %treemap) nounwind uwtable {
|
||||
entry:
|
||||
|
Loading…
x
Reference in New Issue
Block a user