mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
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
This commit is contained in:
parent
69b08ad25b
commit
b9cedfb407
@ -69,11 +69,6 @@ static cl::opt<unsigned> AlignAllNonFallThruBlocks(
|
|||||||
"nops that are executed)."),
|
"nops that are executed)."),
|
||||||
cl::init(0), cl::Hidden);
|
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.
|
// FIXME: Find a good default for this flag and remove the flag.
|
||||||
static cl::opt<unsigned> ExitBlockBias(
|
static cl::opt<unsigned> ExitBlockBias(
|
||||||
"block-placement-exit-block-bias",
|
"block-placement-exit-block-bias",
|
||||||
@ -1341,11 +1336,6 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
|
|||||||
if (!L)
|
if (!L)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (AlignAllLoops) {
|
|
||||||
ChainBB->setAlignment(AlignAllLoops);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned Align = TLI->getPrefLoopAlignment(L);
|
unsigned Align = TLI->getPrefLoopAlignment(L);
|
||||||
if (!Align)
|
if (!Align)
|
||||||
continue; // Don't care about loop alignment.
|
continue; // Don't care about loop alignment.
|
||||||
|
Loading…
Reference in New Issue
Block a user