[all-commits] [llvm/llvm-project] 67be40: Recommit "[SelectOpti][5/5] Optimize select-to-bra...

Sotiris Apostolakis via All-commits all-commits at lists.llvm.org
Tue May 24 11:11:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67be40df6eefe375a0c97341940922f0ef7775a4
      https://github.com/llvm/llvm-project/commit/67be40df6eefe375a0c97341940922f0ef7775a4
  Author: Sotiris Apostolakis <apostolakis at google.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectOptimize.cpp
    M llvm/test/CodeGen/X86/select-optimize.ll

  Log Message:
  -----------
  Recommit "[SelectOpti][5/5] Optimize select-to-branch transformation"

Use container::size_type directly to avoid type mismatch causing build failures in Windows.

Original commit message:
This patch optimizes the transformation of selects to a branch when the heuristics deemed it profitable.
It aggressively sinks eligible instructions to the newly created true/false blocks to prevent their
execution on the common path and interleaves dependence slices to maximize ILP.

Depends on D120232

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D120233




More information about the All-commits mailing list