[PATCH] D67722: [PowerPC] Remove redundant CRSET/CRUNSET in custom lowering of known CR bit spills
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 04:47:07 PDT 2019
nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.
LGTM. Feel free to address the comments on the commit.
================
Comment at: llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp:165
+ if (skipFunction(MF.getFunction()) || !RunPreEmitPeephole) {
+ // Remove UNENCODED_NOP even with -ppc-late-peephole=false
+ SmallVector<MachineInstr *, 4> InstrsToErase;
----------------
Nit: Expand this comment to:
```
// Remove UNENCODED_NOP even when this pass is disabled.
// This needs to be done unconditionally so we don't emit zeros
// in the instruction stream.
```
================
Comment at: llvm/test/CodeGen/PowerPC/knowCRBitSpill.ll:6
+; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
+; RUN: -ppc-late-peephole=false -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | FileCheck %s
----------------
Please add `--implicit-check-not=creqv --implicit-check-not=crxor` as we want to make sure we don't emit the CRSET/CRUNSET.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67722/new/
https://reviews.llvm.org/D67722
More information about the llvm-commits
mailing list