[all-commits] [llvm/llvm-project] 7fd997: [InstCombine] Drop UB-implying attrs/metadata afte...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Mon Mar 18 16:37:56 PDT 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fd9979eb9cf9d93d76e12e85aa1ad847794ebbc
      https://github.com/llvm/llvm-project/commit/7fd9979eb9cf9d93d76e12e85aa1ad847794ebbc
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-03-17 (Sun, 17 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/intrinsic-select.ll

  Log Message:
  -----------
  [InstCombine] Drop UB-implying attrs/metadata after speculating an instruction (#85542)

When speculating an instruction in `InstCombinerImpl::FoldOpIntoSelect`,
the call may result in undefined behavior. This patch drops all
UB-implying attrs/metadata to fix this.

Fixes #85536.

(cherry picked from commit 252d01952c087cf0d141f7f281cf60efeb98be41)



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