diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-04-06 19:30:28 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-04-06 19:30:28 +0000 |
commit | 8fc33e5d9559fef34a1dd6c1a3febe38df0b4279 (patch) | |
tree | 07f23f550bb9e873a128bc55e8334fe82e511a16 | |
parent | 537ec717757640348892f00ac7b62fdd33a9845e (diff) | |
download | bcm5719-llvm-8fc33e5d9559fef34a1dd6c1a3febe38df0b4279.tar.gz bcm5719-llvm-8fc33e5d9559fef34a1dd6c1a3febe38df0b4279.zip |
PPC ISEL is a select and never has side effects
llvm-svn: 178960
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstr64Bit.td | 1 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.td | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td index fa5b65f0ba2..6536ea4651b 100644 --- a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/llvm/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/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td index ab907622bee..8cc5bb63ae7 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td +++ b/llvm/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, |