[all-commits] [llvm/llvm-project] 7ba484: [ControlHeightReduction] Freeze condition when con...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon May 16 01:37:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ba484660b74d5b9d0b342a45cdb0ce8fd5b04bb
      https://github.com/llvm/llvm-project/commit/7ba484660b74d5b9d0b342a45cdb0ce8fd5b04bb
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
    M llvm/test/Transforms/PGOProfile/chr.ll

  Log Message:
  -----------
  [ControlHeightReduction] Freeze condition when converting select to branch

While select conditions can be poison, branch on poison is
immediate UB. As such, we need to freeze the condition when
converting a select into a branch.

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




More information about the All-commits mailing list