Add a flag to align all basic blocks in the function.
authorNadav Rotem <nrotem@apple.com>
Fri, 12 Apr 2013 00:48:32 +0000 (00:48 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 12 Apr 2013 00:48:32 +0000 (00:48 +0000)
commit07706e5506fb1bf494667e9fd16795b6c0b4d0fb
tree904fea6f8e94e70005c42efc315e29b35f1983ad
parente292347503cd7598429c08f9984ab3e0a44ab8a3
Add a flag to align all basic blocks in the function.

When debugging performance regressions we often ask ourselves if the regression
that we see is due to poor isel/sched/ra or due to some micro-architetural
problem.  When comparing two code sequences one good way to rule out front-end
bottlenecks (and other the issues) is to force code alignment. This pass adds
a flag that forces the alignment of all of the basic blocks in the program.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBlockPlacement.cpp
test/CodeGen/X86/code_placement_align_all.ll [new file with mode: 0644]