[all-commits] [llvm/llvm-project] 993b16: Reapply [SimplifyCFG] Handle branch on same condit...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 22 01:27:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 993b166debd1c4e6b4897c2d425273efab892221
      https://github.com/llvm/llvm-project/commit/993b166debd1c4e6b4897c2d425273efab892221
  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] Handle branch on same condition in pred more directly

Reapplying without changes, after a fix to a dependent patch.

-----

Rather than creating a PHI node and then using the PHI threading
code, directly handle this case in
FoldCondBranchOnValueKnownInPredecessor().

This change is supposed to be NFC-ish, but may cause changes due
to different transform order.




More information about the All-commits mailing list