[PATCH] D76153: [SimplifyCFG] try branch-to-branch simplification sooner

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 21:34:19 PDT 2020


aqjune added a comment.

Right now, making SimplifyCFG add freeze would block many optimization because analysis for redundant freeze removal isn't mature enough.
However, we can assess its effect to backend by updating transformations that are similar with this and happening at very late pipeline.
What I've found was `llvm/test/Transforms/CodeGenPrepare/X86/select.ll` . it converts select into br in certain cases (fdiv_true_sink).
What do you think about making the branch condition freezed? It will be a good start for having actual freeze in IR.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76153/new/

https://reviews.llvm.org/D76153





More information about the llvm-commits mailing list