[PATCH] D43256: [MBP] Move a latch block with conditional exit and multi predecessors to top of loop

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 14:51:48 PDT 2019


Carrot updated this revision to Diff 201075.
Carrot added a comment.
Herald added subscribers: asbirlea, jsji, jfb, jvesely, qcolombet.

Update the patch to the current code base, also make two improvements:

- Do more precise cost analysis based on the increased number of fallthrough.
- Also enable findBestLoopTop when profile information is available.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D43256/new/

https://reviews.llvm.org/D43256

Files:
  lib/CodeGen/MachineBlockPlacement.cpp
  test/CodeGen/AArch64/cmpxchg-idioms.ll
  test/CodeGen/AArch64/neg-imm.ll
  test/CodeGen/AArch64/tailmerging_in_mbp.ll
  test/CodeGen/AMDGPU/collapse-endcf.ll
  test/CodeGen/AMDGPU/divergent-branch-uniform-condition.ll
  test/CodeGen/AMDGPU/global_smrd_cfg.ll
  test/CodeGen/AMDGPU/hoist-cond.ll
  test/CodeGen/AMDGPU/i1-copy-from-loop.ll
  test/CodeGen/AMDGPU/loop_break.ll
  test/CodeGen/AMDGPU/loop_exit_with_xor.ll
  test/CodeGen/AMDGPU/madmk.ll
  test/CodeGen/AMDGPU/multilevel-break.ll
  test/CodeGen/AMDGPU/optimize-negated-cond.ll
  test/CodeGen/AMDGPU/si-annotate-cf.ll
  test/CodeGen/AMDGPU/valu-i1.ll
  test/CodeGen/AMDGPU/wqm.ll
  test/CodeGen/ARM/arm-and-tst-peephole.ll
  test/CodeGen/ARM/atomic-cmp.ll
  test/CodeGen/ARM/atomic-cmpxchg.ll
  test/CodeGen/ARM/code-placement.ll
  test/CodeGen/ARM/pr32578.ll
  test/CodeGen/ARM/swifterror.ll
  test/CodeGen/Hexagon/bug6757-endloop.ll
  test/CodeGen/Hexagon/early-if-merge-loop.ll
  test/CodeGen/Hexagon/prof-early-if.ll
  test/CodeGen/Hexagon/redundant-branching2.ll
  test/CodeGen/PowerPC/atomics-regression.ll
  test/CodeGen/PowerPC/cmp_elimination.ll
  test/CodeGen/PowerPC/ctrloop-shortLoops.ll
  test/CodeGen/PowerPC/expand-foldable-isel.ll
  test/CodeGen/PowerPC/knowCRBitSpill.ll
  test/CodeGen/PowerPC/licm-remat.ll
  test/CodeGen/SystemZ/atomicrmw-minmax-01.ll
  test/CodeGen/SystemZ/atomicrmw-minmax-02.ll
  test/CodeGen/SystemZ/loop-01.ll
  test/CodeGen/SystemZ/loop-02.ll
  test/CodeGen/SystemZ/swifterror.ll
  test/CodeGen/Thumb/consthoist-physical-addr.ll
  test/CodeGen/X86/block-placement.ll
  test/CodeGen/X86/branch_instruction_and_target_split_perf_nops.mir
  test/CodeGen/X86/code_placement.ll
  test/CodeGen/X86/code_placement_cold_loop_blocks.ll
  test/CodeGen/X86/code_placement_ignore_succ_in_inner_loop.ll
  test/CodeGen/X86/code_placement_loop_rotation2.ll
  test/CodeGen/X86/code_placement_no_header_change.ll
  test/CodeGen/X86/loop-blocks.ll
  test/CodeGen/X86/lsr-loop-exit-cond.ll
  test/CodeGen/X86/move_latch_to_loop_top.ll
  test/CodeGen/X86/pr38185.ll
  test/CodeGen/X86/speculative-load-hardening.ll
  test/CodeGen/X86/swifterror.ll
  test/CodeGen/X86/tail-dup-merge-loop-headers.ll
  test/CodeGen/X86/tail-dup-repeat.ll
  test/CodeGen/X86/widen_arith-1.ll
  test/CodeGen/X86/widen_arith-2.ll
  test/CodeGen/X86/widen_arith-3.ll
  test/CodeGen/X86/widen_arith-4.ll
  test/CodeGen/X86/widen_arith-5.ll
  test/CodeGen/X86/widen_arith-6.ll
  test/CodeGen/X86/widen_cast-4.ll
  test/CodeGen/X86/x86-cmov-converter.ll
  test/DebugInfo/X86/PR37234.ll
  test/DebugInfo/X86/dbg-value-transfer-order.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43256.201075.patch
Type: text/x-patch
Size: 113234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190523/0daefb56/attachment-0001.bin>


More information about the llvm-commits mailing list