[PATCH] D69551: [PowerPC] Fix the incorrect 'RM' flag set on load/store instr

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 18:56:12 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG529bb8a98048: [PowerPC] Fix the incorrect 'RM' flag set on load/store instr (authored by QingShan Zhang <48825004 at qq.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69551/new/

https://reviews.llvm.org/D69551

Files:
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/instr-properties.ll


Index: llvm/test/CodeGen/PowerPC/instr-properties.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/PowerPC/instr-properties.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-misched -stop-after=machine-scheduler -o - | FileCheck %s --check-prefix=CHECK-P8
+
+; Verify XFLOADf64 didn't implict def 'rm'.
+define double @rm() {
+; CHECK-P8-LABEL: bb.0.entry
+; CHECK-P8: %{{[0-9]+}}:vsfrc = XFLOADf64 $zero8, %{{[0-9]+}} ::
+entry:
+  ret double 2.300000e+00
+}
Index: llvm/lib/Target/PowerPC/PPCInstrVSX.td
===================================================================
--- llvm/lib/Target/PowerPC/PPCInstrVSX.td
+++ llvm/lib/Target/PowerPC/PPCInstrVSX.td
@@ -152,7 +152,6 @@
 let Predicates = [HasVSX] in {
 let AddedComplexity = 400 in { // Prefer VSX patterns over non-VSX patterns.
 let hasSideEffects = 0 in { // VSX instructions don't have side effects.
-let Uses = [RM] in {
 
   // Load indexed instructions
   let mayLoad = 1, mayStore = 0 in {
@@ -214,6 +213,7 @@
     }
   } // mayStore
 
+  let Uses = [RM] in {
   // Add/Mul Instructions
   let isCommutable = 1 in {
     def XSADDDP : XX3Form<60, 32,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69551.227993.patch
Type: text/x-patch
Size: 1221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191106/9a22706f/attachment.bin>


More information about the llvm-commits mailing list