[all-commits] [llvm/llvm-project] 08f3ed: [CIR] Fix spurious MemRead on pure pointer-arithme...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Fri Mar 6 22:55:55 PST 2026
Branch: refs/heads/users/xlauko/cir-pure-fixes
Home: https://github.com/llvm/llvm-project
Commit: 08f3edad0554c236bbdc977eaa574ca4dca344ee
https://github.com/llvm/llvm-project/commit/08f3edad0554c236bbdc977eaa574ca4dca344ee
Author: xlauko <xlauko at mail.muni.cz>
Date: 2026-03-07 (Sat, 07 Mar 2026)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIROps.td
A clang/test/CIR/Transforms/pure-ptr-arithmetic.cir
Log Message:
-----------
[CIR] Fix spurious MemRead on pure pointer-arithmetic ops
Remove incorrect [MemRead] annotations from ops that only perform
pointer arithmetic without loading memory. Add Pure trait to ops
that were missing it.
Affected ops:
- VTableGetVPtrOp, VTableGetVirtualFnAddrOp, VTableGetTypeInfoOp:
remove [MemRead] (already had Pure)
- GetMemberOp, GetRuntimeMemberOp, BaseClassAddrOp, DerivedClassAddrOp:
remove [MemRead] and add Pure
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list