summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2017-10-21 20:38:15 +0000
committerAaron Ballman <aaron@aaronballman.com>2017-10-21 20:38:15 +0000
commitfc02869c969d938f6bd8973700bf431c59e4c266 (patch)
treeb84353c29325988bdb78f7e0f5d4fffd95dda087 /llvm/lib
parent61736556394148537bce1ee35c5a2b4e60239e14 (diff)
downloadbcm5719-llvm-fc02869c969d938f6bd8973700bf431c59e4c266.tar.gz
bcm5719-llvm-fc02869c969d938f6bd8973700bf431c59e4c266.zip
Reverting r316270 due to failing build bots.
http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules-2/builds/12899 http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/7951 llvm-svn: 316276
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td14
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 92cf29c4548..e22c466b203 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -4668,7 +4668,7 @@ def DWLo32RotateInsertByte1 {
}
def ExtendLo32 {
- dag ToLo32 =
+ dag To64Bit =
(i64 (INSERT_SUBREG (i64 (IMPLICIT_DEF)),
DWLo32RotateInsertByte1.Left, sub_32));
}
@@ -4695,17 +4695,15 @@ def DWHi32RotateInsertByte1 {
(RLWIMI DWHi32RotateInsertByte3.Left, DWExtractHi32.SubReg, 8, 24, 31);
}
-def MoveHi32 {
- dag ToLo32 =
+def ExtendHi32 {
+ dag To64Bit =
(i64 (INSERT_SUBREG (i64 (IMPLICIT_DEF)),
DWHi32RotateInsertByte1.Left, sub_32));
}
-// Now byte-swap within the high word and low word both are done, next
-// swap the high word and low word.
-def DWShiftLo32 { // SLDI ExtendLo32.ToLo32, 32
- dag ToHi32 = (RLDICR ExtendLo32.ToLo32, 32, 31);
+def DWShiftLo32 { // SLDI ExtendHi32.To64Bit, 32
+ dag ToHi32 = (RLDICR ExtendHi32.To64Bit, 32, 31);
}
def : Pat<(i64 (bitreverse i64:$A)),
- (OR8 DWShiftLo32.ToHi32, MoveHi32.ToLo32)>;
+ (OR8 DWShiftLo32.ToHi32, ExtendLo32.To64Bit)>;
OpenPOWER on IntegriCloud