[all-commits] [llvm/llvm-project] ae27ca: [PowerPC] PPC backend optimization on conditional ...

Victor Huang via All-commits all-commits at lists.llvm.org
Tue Nov 16 11:13:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae27ca9a678301969c35f2e27c76f14c9d2bb396
      https://github.com/llvm/llvm-project/commit/ae27ca9a678301969c35f2e27c76f14c9d2bb396
  Author: Victor Huang <wei.huang at ibm.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    A llvm/test/CodeGen/PowerPC/mi-peepholes-trap-opt.mir

  Log Message:
  -----------
  [PowerPC] PPC backend optimization on conditional trap intrustions

This patch adds PPC back end optimization to analyze the arguments of a
conditional trap instruction to execute one of the following:
1. Delete it if never trap
2. Replace it if always trap
3. Otherwise keep it

Reviewed By: nemanjai, amyk, PowerPC

Differential revision: https://reviews.llvm.org/D111434




More information about the All-commits mailing list