-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][ESIMD] Remove optnone from ESIMD functions (#11986)
Previously we never had optnone in the SPIR-V due to the issue in 993fe5b, but with that fixed we started seeing it and that broke some O0 tests. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
; This ensures we remove optnone from ESIMD functions | ||
; RUN: opt < %s -passes=LowerESIMD -S | FileCheck %s | ||
|
||
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" | ||
target triple = "spir64-unknown-unknown" | ||
|
||
define dso_local spir_func void @esimd() #0 !sycl_explicit_simd !0 { | ||
; CHECK: void @esimd() #[[#ESIMDAttr:]] | ||
ret void | ||
} | ||
|
||
define dso_local spir_func void @sycl() #0 { | ||
; CHECK: spir_func void @sycl() #[[#SYCLAttr:]] | ||
ret void | ||
} | ||
; CHECK: attributes #[[#ESIMDAttr]] = | ||
; CHECK-NOT: optnone | ||
; CHECK: attributes #[[#SYCLAttr]] = {{{.*}}optnone{{.*}}} | ||
attributes #0 = { noinline optnone convergent } | ||
!0 = !{} |