[PATCH] D81723: [PowerPC] fold addi's imm operand to its imm form consumer's displacement
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 20:25:08 PDT 2020
steven.zhang accepted this revision.
steven.zhang added a comment.
This revision is now accepted and ready to land.
LGTM now with one minor nit.
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:3906
+ // isImmElgibleForForwarding.
+ int64_t Imm = ImmOperandMI.getImm();
+ if (!isImmElgibleForForwarding(*ImmMO, DefMI, III, Imm, Imm))
----------------
Don't use the same variable to avoid confusion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81723/new/
https://reviews.llvm.org/D81723
More information about the llvm-commits
mailing list