Skip to content

[SPIR-V] Reland "Translate icmp eq and icmp ne to PtrEqual and PtrNotEqual"#22117

Open
vmaksimo wants to merge 2 commits into
intel:syclfrom
vmaksimo:reland-icmp-ptrequal
Open

[SPIR-V] Reland "Translate icmp eq and icmp ne to PtrEqual and PtrNotEqual"#22117
vmaksimo wants to merge 2 commits into
intel:syclfrom
vmaksimo:reland-icmp-ptrequal

Conversation

@vmaksimo
Copy link
Copy Markdown
Contributor

@vmaksimo vmaksimo commented May 26, 2026

Reapplies the LLVM-to-SPIR-V translation of pointer icmp eq/icmp ne to OpPtrEqual / OpPtrNotEqual when SPIR-V 1.4 is allowed.

Original Khronos PR: KhronosGroup/SPIRV-LLVM-Translator#2511

The change was reverted in c4be885 due to a batch of SYCL E2E failures. The drivers are now expected to support these opcodes; CI on this PR validates that assumption.

It resolves p.6 of #7592 "Following patches are missing" section.

vmaksimo added 2 commits May 26, 2026 06:13
…Equal"

Reapplies the LLVM-to-SPIR-V translation of pointer icmp eq/ne to
OpPtrEqual / OpPtrNotEqual when SPIR-V 1.4 is allowed.

The change was reverted in c4be885 due to a batch of SYCL E2E failures.
The drivers are now expected to support these opcodes.
Restore the original OpPtrEqual CHECK lines in addrspacecast_null.ll
and addrspacecast_generic_null.ll that were temporarily replaced with
ConvertPtrToU + IEqual.
@vmaksimo vmaksimo closed this May 28, 2026
@vmaksimo vmaksimo reopened this May 28, 2026
@vmaksimo vmaksimo marked this pull request as ready for review May 28, 2026 12:02
@vmaksimo vmaksimo requested a review from a team as a code owner May 28, 2026 12:02
@vmaksimo vmaksimo requested a review from YuriPlyakhin May 28, 2026 12:03
@vmaksimo
Copy link
Copy Markdown
Contributor Author

vmaksimo commented May 28, 2026

CI failures on Windows look unrelated to the change:

Failed Tests (2):
  SYCL :: Adapters/level_zero/eager_init.cpp
  SYCL :: USM/usm_pooling.cpp

Adapters - filed a bug 22151
USM one is tracked by #21556

Copy link
Copy Markdown
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants