llvm-project/llvm/lib/CodeGen/AsmPrinter
Sinan Lin 4ad8952d2d [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in
basic block section cases

MachineBlockPlacement pass sets an alignment attribute to the loop
header MBB and this attribute will lead to an alignment directive during
emitting asm. In the case of the basic block section, the alignment
directive is put before the section label, and thus the alignment is set
to the predecessor of the loop header, which is not what we expect and
increases the code size (both inserting nop and set section alignment).

Reviewed By: rahmanl

Differential Revision: https://reviews.llvm.org/D137535
2022-11-17 15:01:57 +08:00
..
AIXException.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
ARMException.cpp [MC] De-capitalize MCStreamer functions 2022-06-07 00:31:02 -07:00
AccelTable.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
AddressPool.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
AddressPool.h
AsmPrinter.cpp [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in 2022-11-17 15:01:57 +08:00
AsmPrinterDwarf.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
AsmPrinterInlineAsm.cpp AsmPrinter: Remove pointless code in inline asm emission 2022-10-13 21:12:11 -07:00
ByteStreamer.h
CMakeLists.txt
CodeViewDebug.cpp [clang][pdb] Don't include -fmessage-length in PDB buildinfo 2022-11-08 10:05:59 +01:00
CodeViewDebug.h Drop empty string literals from static_assert (NFC) 2022-09-03 11:17:47 -07:00
DIE.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DIEHash.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
DIEHash.h
DIEHashAttributes.def [DWARF] Add linkagename to hash 2022-07-08 10:15:25 -07:00
DbgEntityHistoryCalculator.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
DebugHandlerBase.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
DebugLocEntry.h [llvm] Drop unnecessary const from return types (NFC) 2022-08-07 00:16:11 -07:00
DebugLocStream.cpp
DebugLocStream.h
DwarfCFIException.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DwarfCompileUnit.cpp [DebugInfo] Fix potential CU mismatch for attachRangesOrLowHighPC 2022-10-22 21:22:01 +08:00
DwarfCompileUnit.h [DebugInfo] Fix potential CU mismatch for attachRangesOrLowHighPC 2022-10-22 21:22:01 +08:00
DwarfDebug.cpp [LLVM] Use DWARFv4 bitfields when tuning for GDB 2022-10-27 08:51:07 +00:00
DwarfDebug.h DebugInfo: Don't allow type units to references types in the CU 2022-03-25 23:49:03 +00:00
DwarfException.h [CodeGen] Use default member initialization (NFC) 2022-01-30 12:32:51 -08:00
DwarfExpression.cpp Remove redundant initialization of Optional (NFC) 2022-08-20 21:18:28 -07:00
DwarfExpression.h
DwarfFile.cpp [llvm] Use x.empty() instead of llvm::empty(x) (NFC) 2022-09-12 13:34:35 -07:00
DwarfFile.h
DwarfStringPool.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
DwarfStringPool.h
DwarfUnit.cpp [DebugInfo] Emit access specifiers for typedefs 2022-09-22 17:08:41 +00:00
DwarfUnit.h [CodeGen] Use default member initialization (NFC) 2022-01-30 12:32:51 -08:00
EHStreamer.cpp [EHStreamer] Omit @LPStart when function has no landing pads 2022-08-15 17:09:46 -07:00
EHStreamer.h
ErlangGCPrinter.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
OcamlGCPrinter.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
PseudoProbePrinter.cpp [PseudoProbe] Replace relocation with offset for entry probe. 2022-10-27 13:28:22 -07:00
PseudoProbePrinter.h
WasmException.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
WasmException.h [llvm] Remove redundaunt virtual specifiers (NFC) 2022-07-24 21:50:35 -07:00
WinCFGuard.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
WinCFGuard.h
WinException.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
WinException.h