mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
9cae2d2225
basic blocks containing calls. This works around a problem in which these artificial dependencies can get tied up in calling seqeunce scheduling in a way that makes the graph unschedulable with the current approach of using artificial physical register dependencies for calling sequences. This fixes PR11314. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144124 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
635 B
LLVM
17 lines
635 B
LLVM
; RUN: llc -march=x86 -mcpu=pentium4 -mtriple=i686-none-linux < %s
|
|
; PR11314
|
|
|
|
; Make sure the scheduler's hack to insert artificial dependencies to optimize
|
|
; two-address instruction scheduling doesn't interfere with the scheduler's
|
|
; hack to model call sequences as artificial physical registers.
|
|
|
|
define inreg { i64, i64 } @sscanf(i32 inreg %base.1.i) nounwind {
|
|
entry:
|
|
%conv38.i92.i = sext i32 %base.1.i to i64
|
|
%rem.i93.i = urem i64 10, %conv38.i92.i
|
|
%div.i94.i = udiv i64 10, %conv38.i92.i
|
|
%a = insertvalue { i64, i64 } undef, i64 %rem.i93.i, 0
|
|
%b = insertvalue { i64, i64 } %a, i64 %div.i94.i, 1
|
|
ret { i64, i64 } %b
|
|
}
|