[all-commits] [llvm/llvm-project] df18e3: Reapply [SimplifyCFG] Make FoldCondBranchOnPHI mor...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 22 00:42:28 PDT 2022

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

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

  Log Message:
  Reapply [SimplifyCFG] Make FoldCondBranchOnPHI more amenable to extension (NFCI)

Reapply with SmallMapVector instead of SmallDenseMap, which should
address the non-determinism issue.


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