mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
bb167336b3
[LLVM part] These patches rename the loop unrolling and loop vectorizer metadata such that they have a common 'llvm.loop.' prefix. Metadata name changes: llvm.vectorizer.* => llvm.loop.vectorizer.* llvm.loopunroll.* => llvm.loop.unroll.* This was a suggestion from an earlier review (http://reviews.llvm.org/D4090) which added the loop unrolling metadata. Patch by Mark Heffernan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211710 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
1.0 KiB
LLVM
30 lines
1.0 KiB
LLVM
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-crbits | FileCheck %s
|
|
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-CRB
|
|
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
define void @_Z8example3iPiS_() #0 {
|
|
entry:
|
|
br i1 undef, label %while.end, label %while.body.lr.ph
|
|
|
|
while.body.lr.ph: ; preds = %entry
|
|
br i1 undef, label %while.end, label %while.body
|
|
|
|
while.body: ; preds = %while.body, %while.body.lr.ph
|
|
br i1 false, label %while.end, label %while.body, !llvm.loop.vectorize.already_vectorized !0
|
|
|
|
while.end: ; preds = %while.body, %while.body.lr.ph, %entry
|
|
ret void
|
|
|
|
; CHECK: @_Z8example3iPiS_
|
|
; CHECK: bnelr
|
|
|
|
; CHECK-CRB: @_Z8example3iPiS_
|
|
; CHECK-CRB: bclr 12,
|
|
}
|
|
|
|
attributes #0 = { noinline nounwind }
|
|
|
|
!0 = metadata !{}
|
|
|