[PATCH] D32776: Enable branch coalescing on PowerPC
Lei Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 10:42:49 PDT 2017
lei added inline comments.
================
Comment at: include/llvm/Target/TargetFrameLowering.h:149
+ /// Returns true if the target will correctly handle branch coalescing
+ virtual bool enableBranchCoalescing(const MachineFunction &MF) const {
----------------
nemanjai wrote:
> I find this an unusual place for this check. What is the relationship between this pass and frame lowering?
None. Will move.
================
Comment at: test/CodeGen/PowerPC/select-i1-vs-i1.ll:1029
-; FIXME: Because of the way that the late SELECT_* pseudo-instruction expansion
-; works, we end up with two blocks with the same predicate. These could be
-; combined.
+; The default branchCoalescing optimization merged the two identical predicate blocks
+; that were expanded by the late SELECT_* pseudo-instruction expansion.
----------------
nemanjai wrote:
> I don't think this comment is necessary here. It should suffice to just remove the FIXME comment. The reason I say that is that the user will not know that we once had this duplicate block issue.
k.
https://reviews.llvm.org/D32776
More information about the llvm-commits
mailing list