[all-commits] [llvm/llvm-project] cca5bb: [OpenMP] Use CreatePtrDiff() (#184127)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Mar 2 06:35:02 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cca5bb52f37af8ff263af68e5efd4afbe106185b
      https://github.com/llvm/llvm-project/commit/cca5bb52f37af8ff263af68e5efd4afbe106185b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/test/OpenMP/target_task_affinity_codegen.cpp
    M clang/test/OpenMP/task_codegen.cpp
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/lib/IR/IRBuilder.cpp

  Log Message:
  -----------
  [OpenMP] Use CreatePtrDiff() (#184127)

This will use ptrtoaddr instead of ptrtoint in the pointer difference
calculation, avoiding unnecessary provenance exposure.

Add an IsNUW flag to allow specifying nuw on the subtraction.



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