[all-commits] [llvm/llvm-project] 898825: [SimplifyCFG] Make FoldCondBranchOnPHI more amenab...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Apr 21 01:50:06 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8988254667fff67d1f585396aa0e9933f5ba69ad
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp

  Log Message:
  [SimplifyCFG] Make FoldCondBranchOnPHI more amenable to extension

This general threading transform can be performed whenever we know
a constant value for the condition in a predecessor, which would
currently just be the case of a phi node with constant arguments.

More information about the All-commits mailing list