mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
LSR: rewrite inner loops only.
Rewriting the entire loop nest now requires -enable-lsr-nested. See PR11035 for some performance data. A few unit tests specifically test nested LSR, and are now under a flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
; RUN: llc < %s -march=x86 | grep cmp | grep 240
|
||||
; RUN: llc < %s -march=x86 | grep inc | count 1
|
||||
; RUN: llc < %s -march=x86 -enable-lsr-nested | grep cmp | grep 240
|
||||
; RUN: llc < %s -march=x86 -enable-lsr-nested | grep inc | count 1
|
||||
|
||||
define i32 @foo(i32 %A, i32 %B, i32 %C, i32 %D) nounwind {
|
||||
entry:
|
||||
|
||||
Reference in New Issue
Block a user