summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-01-21 18:49:15 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-01-21 18:49:15 +0000
commit406808e344ab4f1c581979314b05285c37afe072 (patch)
tree10475dd69e58ab4a1ea8bdf0a70a895056d04129 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent34abbfb78eda26238ee50b7c412fc313f73f23d9 (diff)
downloadbcm5719-llvm-406808e344ab4f1c581979314b05285c37afe072.tar.gz
bcm5719-llvm-406808e344ab4f1c581979314b05285c37afe072.zip
Partially revert "Add command line options to force function/loop alignments."
This partially reverts r256571 in favor of the solution in r258409. llvm-svn: 258421
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index ce920a117ae..038634aeb6e 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -69,11 +69,6 @@ static cl::opt<unsigned> AlignAllNonFallThruBlocks(
"nops that are executed)."),
cl::init(0), cl::Hidden);
-static cl::opt<unsigned>
- AlignAllLoops("align-all-loops",
- cl::desc("Force the alignment of all loops in the function."),
- cl::init(0), cl::Hidden);
-
// FIXME: Find a good default for this flag and remove the flag.
static cl::opt<unsigned> ExitBlockBias(
"block-placement-exit-block-bias",
@@ -1341,11 +1336,6 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
if (!L)
continue;
- if (AlignAllLoops) {
- ChainBB->setAlignment(AlignAllLoops);
- continue;
- }
-
unsigned Align = TLI->getPrefLoopAlignment(L);
if (!Align)
continue; // Don't care about loop alignment.
OpenPOWER on IntegriCloud