[PATCH] D111434: [PowerPC] PPC backend optimization on conditional trap intrustions
Victor Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 09:07:02 PDT 2021
NeHuang created this revision.
NeHuang added reviewers: nemanjai, stefanp, PowerPC.
NeHuang added projects: LLVM, PowerPC.
Herald added subscribers: shchenz, JDevlieghere, kbarton, hiraditya.
NeHuang requested review of this revision.
This patch adds PPC back end optimization to analyze the arguments of a conditional trap instruction to execute one of the following
- Delete it if the condition is never true
- Replace it with an unconditional trap if the condition is always true
- Otherwise keep it
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111434
Files:
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/mi-peepholes-trap-opt.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111434.378240.patch
Type: text/x-patch
Size: 14761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/392546e8/attachment.bin>
More information about the llvm-commits
mailing list