llvm-project/llvm/test/CodeGen
Kyle Butt adabac2d57 Codegen: Tail-duplicate during placement.
The tail duplication pass uses an assumed layout when making duplication
decisions. This is fine, but passes up duplication opportunities that
may arise when blocks are outlined. Because we want the updated CFG to
affect subsequent placement decisions, this change must occur during
placement.

In order to achieve this goal, TailDuplicationPass is split into a
utility class, TailDuplicator, and the pass itself. The pass delegates
nearly everything to the TailDuplicator object, except for looping over
the blocks in a function. This allows the same code to be used for tail
duplication in both places.

This change, in concert with outlining optional branches, allows
triangle shaped code to perform much better, esepecially when the
taken/untaken branches are correlated, as it creates a second spine when
the tests are small enough.

Issue from previous rollback fixed, and a new test was added for that
case as well.

Differential revision: https://reviews.llvm.org/D18226

llvm-svn: 283274
2016-10-04 23:54:18 +00:00
..
AArch64 Codegen: Tail-duplicate during placement. 2016-10-04 23:54:18 +00:00
AMDGPU Set some tests to an unknown vendor and OS 2016-10-03 21:58:20 +00:00
ARM Codegen: Tail-duplicate during placement. 2016-10-04 23:54:18 +00:00
BPF Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled." 2016-09-28 16:37:50 +00:00
Generic llc: Add -start-before/-stop-before options 2016-09-23 21:46:02 +00:00
Hexagon Set some tests to an unknown vendor and OS 2016-10-03 21:58:20 +00:00
Inputs
Lanai Add a REQUIRES: assert on a Lanai test that uses a -debug-only flag 2016-07-29 19:35:22 +00:00
MIR AMDGPU: Partially fix control flow at -O0 2016-09-29 01:44:16 +00:00
MSP430 Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled." 2016-09-28 16:37:50 +00:00
Mips [mips][fastisel] Consider soft-float an unsupported floating point mode 2016-10-04 10:35:07 +00:00
NVPTX [NVPTX] Added intrinsics for atom.gen.{sys|cta}.* instructions. 2016-09-28 17:25:38 +00:00
PowerPC Codegen: Tail-duplicate during placement. 2016-10-04 23:54:18 +00:00
SPARC [Myriad]: set LeonCASA processor feature 2016-09-13 17:51:41 +00:00
SystemZ Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled." 2016-09-28 16:37:50 +00:00
Thumb Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled." 2016-09-28 16:37:50 +00:00
Thumb2 Revert "[Thumb] Teach ISel how to lower compares of AND bitmasks efficiently" 2016-09-14 09:45:28 +00:00
WebAssembly Codegen: Tail-duplicate during placement. 2016-10-04 23:54:18 +00:00
WinEH Revert EH-specific checks in BranchFolding that were causing blow ups in compile time. 2016-07-27 17:55:33 +00:00
X86 Codegen: Tail-duplicate during placement. 2016-10-04 23:54:18 +00:00
XCore Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled." 2016-09-28 16:37:50 +00:00