Skip to content

Update LLVM#1567

Merged
dneto0 merged 1 commit intogoogle:mainfrom
rjodinchr:update-llvm
Feb 26, 2026
Merged

Update LLVM#1567
dneto0 merged 1 commit intogoogle:mainfrom
rjodinchr:update-llvm

Conversation

@rjodinchr
Copy link
Collaborator

No description provided.

@rjodinchr
Copy link
Collaborator Author

Needs llvm/llvm-project#183469 to pass check-spirv

@rjodinchr rjodinchr marked this pull request as ready for review February 26, 2026 10:22
// CHECK: %[[printf_buffer_access:[0-9a-zA-Z_]+]] = OpAccessChain %{{[0-9a-zA-Z_]+}} %[[printf_buffer]] %[[zero]] %[[zero]]
// CHECK: %[[printf_offset:[0-9a-zA-Z_]+]] = OpAtomicIAdd %[[uint]] %[[printf_buffer_access]] %{{[0-9a-zA-Z_]+}} %{{[0-9a-zA-Z_]+}} %[[one]]
// CHECK: %[[printf_st_offset:[0-9a-zA-Z_]+]] = OpIAdd %[[uint]] %[[printf_offset]] %[[one]]
// CHECK: %[[printf_st_offset:[0-9a-zA-Z_]+]] = OpIAdd %[[uint]] %[[one]] %[[printf_offset]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

oh fun. i wonder why the order changed. (But not that much)

auto initializer = GV->getInitializer();
if (initializer && !initializer->isOneValue() &&
!initializer->isNullValue() && !initializer->isZeroValue() &&
!initializer->isNullValue() && !initializer->isNullValue() &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is now redundant, but ok to land

initializer = Constant::getAllOnesValue(Ty);
} else if (initializer &&
(initializer->isNullValue() || initializer->isZeroValue())) {
(initializer->isNullValue() || initializer->isNullValue())) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

@dneto0 dneto0 merged commit 482a197 into google:main Feb 26, 2026
13 checks passed
@rjodinchr rjodinchr deleted the update-llvm branch February 26, 2026 15:28
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.

3 participants