[all-commits] [llvm/llvm-project] c8eb83: [ControlHeightReduction] Use logical and

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu May 26 09:03:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8eb83f2d007dd3279a9ff459f3464a3cd9568b6
      https://github.com/llvm/llvm-project/commit/c8eb83f2d007dd3279a9ff459f3464a3cd9568b6
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

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

  Log Message:
  -----------
  [ControlHeightReduction] Use logical and

Use logical instead of bitwise and to combine conditions, to avoid
propagating poison from a later condition if an earlier one is
already false. This avoids introducing branch on poison.

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




More information about the All-commits mailing list