mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Introduce runtime unrolling disable matadata and use it to mark the scalar loop from vectorization.
Runtime unrolling is an expensive optimization which can bring benefit only if the loop is hot and iteration number is relatively large enough. For some loops, we know they are not worth to be runtime unrolled. The scalar loop from vectorization is one of the cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -71,7 +71,8 @@ attributes #0 = { nounwind readonly ssp uwtable "fp-contract-model"="standard" "
|
||||
; CHECK: !0 = distinct !{!0, !1, !2}
|
||||
; CHECK: !1 = !{!"llvm.loop.vectorize.width", i32 1}
|
||||
; CHECK: !2 = !{!"llvm.loop.interleave.count", i32 1}
|
||||
; CHECK: !3 = distinct !{!3, !1, !2}
|
||||
; CHECK: !3 = distinct !{!3, !4, !1, !2}
|
||||
; CHECK: !4 = !{!"llvm.loop.unroll.runtime.disable"}
|
||||
|
||||
!0 = !{!0, !1}
|
||||
!1 = !{!"llvm.loop.vectorize.width", i32 1}
|
||||
|
Reference in New Issue
Block a user