[PATCH] D69835: Add options for PPC to enable/disable using non-volatile CR

Victor Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 17:33:40 PST 2019


NeHuang created this revision.
NeHuang added reviewers: hfinkel, lei, nemanjai, stefanp.
NeHuang added a project: LLVM.
Herald added subscribers: llvm-commits, steven.zhang, jsji, kbarton, hiraditya.

In this patch, an option is added for PowerPC to disable using non-volatile CR and avoid CR spilling in the prologue. According to performance analysis results, we found performance gain for a few SPEC2017 benchmarks without introducing significant degradation.


https://reviews.llvm.org/D69835

Files:
  llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
  llvm/lib/Target/PowerPC/PPCRegisterInfo.h
  llvm/lib/Target/PowerPC/PPCRegisterInfo.td
  llvm/test/CodeGen/PowerPC/ppc-disable-non-volatile-cr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69835.227803.patch
Type: text/x-patch
Size: 4365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191105/e767a404/attachment.bin>


More information about the llvm-commits mailing list