~mmach/netext73/llvm-17

« back to all changes in this revision

Viewing changes to llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

  • Committer: mmach
  • Date: 2023-11-07 17:56:14 UTC
  • Revision ID: netbit73@gmail.com-20231107175614-3ltqisrkciw5xvff
17.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1033
1033
  // Set required alignment.
1034
1034
  setMinFunctionAlignment(Align(4));
1035
1035
  // Set preferred alignments.
1036
 
  setPrefLoopAlignment(STI.getPrefLoopAlignment());
 
1036
 
 
1037
  // Don't align loops on Windows. The SEH unwind info generation needs to
 
1038
  // know the exact length of functions before the alignments have been
 
1039
  // expanded.
 
1040
  if (!Subtarget->isTargetWindows())
 
1041
    setPrefLoopAlignment(STI.getPrefLoopAlignment());
1037
1042
  setMaxBytesForAlignment(STI.getMaxBytesForLoopAlignment());
1038
1043
  setPrefFunctionAlignment(STI.getPrefFunctionAlignment());
1039
1044