[X86] Disable the NOP padding for branches when bundle is enabled
authorShengchen Kan <shengchen.kan@intel.com>
Fri, 28 Feb 2020 13:09:30 +0000 (21:09 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Sat, 29 Feb 2020 07:07:06 +0000 (15:07 +0800)
commit129a762555b8b7fcc6e29a320a0d27f960e469ae
treeffa571d68faa7c416c4e2d4e7bc3d9e3a74ee241
parent00925aadb3f26ed41d4f1d35c1328adad1a3eeb1
[X86] Disable the NOP padding for branches when bundle is enabled

When bundle is enabled, data fragment itself has a space to emit NOP
to bundle-align instructions. The behaviour makes it impossible for
us to determine whether the macro fusion really happen when emitting
instructions. In addition, boundary-align fragment is also used to
emit NOPs to align instructions, currently using them together sometimes
makes code crazy.

Differential Revision: https://reviews.llvm.org/D75346
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
llvm/test/MC/X86/align-branch-64-7a.s [new file with mode: 0644]