[llvm] r178982 - PPC rotate instructions don't have unmodeled side effcts
Hal Finkel
hfinkel at anl.gov
Sun Apr 7 08:06:53 PDT 2013
Author: hfinkel
Date: Sun Apr 7 10:06:53 2013
New Revision: 178982
URL: http://llvm.org/viewvc/llvm-project?rev=178982&view=rev
Log:
PPC rotate instructions don't have unmodeled side effcts
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td?rev=178982&r1=178981&r2=178982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td Sun Apr 7 10:06:53 2013
@@ -495,6 +495,7 @@ def MULLD : XOForm_1<31, 233, 0, (outs G
[(set i64:$rT, (mul i64:$rA, i64:$rB))]>, isPPC64;
+let neverHasSideEffects = 1 in {
let isCommutable = 1 in {
def RLDIMI : MDForm_1<30, 3,
(outs G8RC:$rA), (ins G8RC:$rSi, G8RC:$rS, u6imm:$SH, u6imm:$MB),
@@ -522,11 +523,12 @@ def RLWINM8 : MForm_2<21,
"rlwinm $rA, $rS, $SH, $MB, $ME", IntGeneral,
[]>;
-let isSelect = 1, neverHasSideEffects = 1 in
+let isSelect = 1 in
def ISEL8 : AForm_4<31, 15,
(outs G8RC:$rT), (ins G8RC_NOX0:$rA, G8RC:$rB, CRBITRC:$cond),
"isel $rT, $rA, $rB, $cond", IntGeneral,
[]>;
+} // neverHasSideEffects = 1
} // End FXU Operations.
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=178982&r1=178981&r2=178982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Sun Apr 7 10:06:53 2013
@@ -1554,8 +1554,9 @@ let Uses = [RM] in {
}
}
+let neverHasSideEffects = 1 in {
let PPC970_Unit = 1 in { // FXU Operations.
- let isSelect = 1, neverHasSideEffects = 1 in
+ let isSelect = 1 in
def ISEL : AForm_4<31, 15,
(outs GPRC:$rT), (ins GPRC_NOR0:$rA, GPRC:$rB, CRBITRC:$cond),
"isel $rT, $rA, $rB, $cond", IntGeneral,
@@ -1586,7 +1587,7 @@ def RLWNM : MForm_2<23,
"rlwnm $rA, $rS, $rB, $MB, $ME", IntGeneral,
[]>;
}
-
+} // neverHasSideEffects = 1
//===----------------------------------------------------------------------===//
// PowerPC Instruction Patterns
More information about the llvm-commits
mailing list