[PATCH] D17625: Do not select EhPad BB in MachineBlockPlacement when there is regular BB to schedule

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 16:50:36 PST 2016


deadalnix created this revision.
deadalnix added reviewers: chandlerc, majnemer, rafael, MatzeB, escha, silvas.
deadalnix added a subscriber: llvm-commits.

EHPad BB are not entered the classic way and therefor do not need to be placed after their predecessors. This patch make sure EHPad BB are not chosen amongst successors to form chains, and are selected as last resort when selecting the best candidate.

EHPad are scheduled in reverse probability order in order to have them flow into each others naturally.

http://reviews.llvm.org/D17625

Files:
  lib/CodeGen/MachineBlockPlacement.cpp
  test/CodeGen/X86/block-placement.ll
  test/CodeGen/X86/seh-safe-div-win32.ll
  test/CodeGen/X86/seh-safe-div.ll
  test/CodeGen/X86/win-catchpad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17625.49122.patch
Type: text/x-patch
Size: 5218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160226/c87e3686/attachment.bin>


More information about the llvm-commits mailing list