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 | 012ffd56059576d4a0ee523f673b3190b1f03311 (patch) | |
tree | 7a3932be85292f1e10072109232b47d0ae473e42 | |
parent | a36119beeceb125fe2097da2729dca886973b108 (diff) | |
download | external_llvm-012ffd56059576d4a0ee523f673b3190b1f03311.zip external_llvm-012ffd56059576d4a0ee523f673b3190b1f03311.tar.gz external_llvm-012ffd56059576d4a0ee523f673b3190b1f03311.tar.bz2 |
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
-rw-r--r-- | lib/Target/PowerPC/PPCInstr64Bit.td | 1 | ||||
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index fa5b65f..6536ea4 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 ab90762..8cc5bb6 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, |