Skip to content

LLVM lowering for cmpxchg might use different alignment from OG #1275

Closed
@bcardosolopes

Description

@bcardosolopes

cmpxchg OG codegen gets 8 bytes versus 4 bytes through CIR, see https://godbolt.org/z/TbM8ToPWc

// Through CIR
%14 = cmpxchg weak ptr %9, i32 %12, i32 %13 seq_cst seq_cst, align 4

vs

// Traditional LLVM codegen
%14 = cmpxchg weak ptr %9, i32 %12, i32 %13 seq_cst seq_cst, align 8

Metadata

Metadata

Assignees

Labels

IR differenceA difference in ClangIR-generated LLVM IR that could complicate reusing original CodeGen testsgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions