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

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Mar 16 23:15:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 252d01952c087cf0d141f7f281cf60efeb98be41
      https://github.com/llvm/llvm-project/commit/252d01952c087cf0d141f7f281cf60efeb98be41
  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.



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