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
; 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: