From: Hal Finkel Date: Sat, 6 Apr 2013 19:30:28 +0000 (+0000) Subject: PPC ISEL is a select and never has side effects X-Git-Tag: android-x86-6.0-r1~154^2~762 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=012ffd56059576d4a0ee523f673b3190b1f03311;p=android-x86%2Fexternal-llvm.git PPC ISEL is a select and never has side effects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178960 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index fa5b65f0ba2..6536ea4651b 100644 --- a/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/lib/Target/PowerPC/PPCInstr64Bit.td @@ -515,6 +515,7 @@ def RLWINM8 : MForm_2<21, "rlwinm $rA, $rS, $SH, $MB, $ME", IntGeneral, []>; +let isSelect = 1, neverHasSideEffects = 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, diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index ab907622bee..8cc5bb63ae7 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -1546,6 +1546,7 @@ let Uses = [RM] in { } let PPC970_Unit = 1 in { // FXU Operations. + let isSelect = 1, neverHasSideEffects = 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,