[PATCH] D30309: CodeGen: BlockPlacement: Precompute layout for chains of triangles.
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 15:13:13 PST 2017
davidxl added inline comments.
================
Comment at: lib/CodeGen/MachineBlockPlacement.cpp:152
+ "triangle tail duplication heuristic to kick in. 0 to disable."),
+ cl::init(2),
+ cl::Hidden);
----------------
Should the default be 3?
================
Comment at: lib/CodeGen/MachineBlockPlacement.cpp:1061
+/// longer chains)
+/// 2) The chains are statically correlated. Branch probabilities have a very
+/// U-shaped distribution. If the branches in a chain are all from the same
----------------
2) This is not entirely true -- it depends on the length the chain (e.g, when branch proabiity to Pdom blocks are low). Perhaps remove 2).
================
Comment at: test/CodeGen/PowerPC/tail-dup-layout.ll:59
call void @a()
- call void @a()
- call void @a()
----------------
Why changing this test?
https://reviews.llvm.org/D30309
More information about the llvm-commits
mailing list