[all-commits] [llvm/llvm-project] d95f46: [IR] Fix incorrect writeonly on llvm.allow.ubsan/r...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 25 00:12:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d95f46ca84d754b6368dfd256969273148c98d14
      https://github.com/llvm/llvm-project/commit/d95f46ca84d754b6368dfd256969273148c98d14
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/test/Instrumentation/BoundsChecking/runtimes.ll

  Log Message:
  -----------
  [IR] Fix incorrect writeonly on llvm.allow.ubsan/runtime.check (#145492)

These intrinsics introduced in #84850 are currently marked as
`memory(inaccessiblemem: write)`. This is not correct for the intended
purpose of allowing per-block decisions, as such calls may get DCEd
across control-flow boundaries (which will start actually happening with
#145474).

Use `memory(inaccessiblemem: readwrite)` instead, just like all the
other control-flow sensitive intrinsics.



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