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)
commitc3b0f50ac25b2277ae8712abc03485923c09716c
tree5299d0a1d862c399dfe4b1c796d944dca67483af
parent73b75e01bfa15ab4d308d05861e39a4f93cb15e9
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.

llvm-svn: 179353
llvm/lib/CodeGen/MachineBlockPlacement.cpp
llvm/test/CodeGen/X86/code_placement_align_all.ll [new file with mode: 0644]