[PATCH] D111434: [PowerPC] PPC backend optimization on conditional trap intrustions
Victor Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 16 08:09:35 PST 2021
NeHuang marked 7 inline comments as done.
NeHuang added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:1020
+ // We can only do the optimization for the "reg + reg" form.
+ if (!(LiMI1 && (Opcode1 == PPC::LI || Opcode1 == PPC::LI8)))
+ break;
----------------
amyk wrote:
> Do we still need to take into account of the lis+ori that Nemanja mentioned?
IIUC, the optimization will be triggered if the immediate is a s16Immediate. We had the similar check and conversion in this patch https://reviews.llvm.org/D112285
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111434/new/
https://reviews.llvm.org/D111434
More information about the llvm-commits
mailing list