[all-commits] [llvm/llvm-project] 028565: [Clang] Emit noundef metadata next to range metadata

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jan 12 01:10:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02856565ac12e21f14f2af64ce1135ecc3c2021f
      https://github.com/llvm/llvm-project/commit/02856565ac12e21f14f2af64ce1135ecc3c2021f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/test/CodeGenCUDA/amdgpu-workgroup-size.cu
    M clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp
    M clang/test/CodeGenCXX/pr12251.cpp
    M clang/test/CodeGenOpenCL/builtins-amdgcn.cl

  Log Message:
  -----------
  [Clang] Emit noundef metadata next to range metadata

To preserve the previous semantics after D141386, adjust places
that currently emit !range metadata to also emit !noundef metadata.
This retains range violation as immediate undefined behavior,
rather than just poison.

Differential Revision: https://reviews.llvm.org/D141494




More information about the All-commits mailing list