[llvm] r367180 - Stricter check for the memory access.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 11:57:59 PDT 2019
Author: joerg
Date: Sat Jul 27 11:57:59 2019
New Revision: 367180
URL: http://llvm.org/viewvc/llvm-project?rev=367180&view=rev
Log:
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.
Modified:
llvm/trunk/test/CodeGen/X86/inlineasm-sched-bug.ll
Modified: llvm/trunk/test/CodeGen/X86/inlineasm-sched-bug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/inlineasm-sched-bug.ll?rev=367180&r1=367179&r2=367180&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/inlineasm-sched-bug.ll (original)
+++ llvm/trunk/test/CodeGen/X86/inlineasm-sched-bug.ll Sat Jul 27 11:57:59 2019
@@ -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:
More information about the llvm-commits
mailing list