[llvm] r319352 - [Hexagon] Remove HexagonISD::PACKHL
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 11:59:29 PST 2017
Author: kparzysz
Date: Wed Nov 29 11:59:29 2017
New Revision: 319352
URL: http://llvm.org/viewvc/llvm-project?rev=319352&view=rev
Log:
[Hexagon] Remove HexagonISD::PACKHL
Added:
llvm/trunk/test/CodeGen/Hexagon/vect/vect-infloop.ll
Removed:
llvm/trunk/test/CodeGen/Hexagon/vect/vect-packhl.ll
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.h
llvm/trunk/lib/Target/Hexagon/HexagonPatterns.td
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp?rev=319352&r1=319351&r2=319352&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp Wed Nov 29 11:59:29 2017
@@ -2216,7 +2216,6 @@ const char* HexagonTargetLowering::getTa
case HexagonISD::INSERT: return "HexagonISD::INSERT";
case HexagonISD::INSERTRP: return "HexagonISD::INSERTRP";
case HexagonISD::JT: return "HexagonISD::JT";
- case HexagonISD::PACKHL: return "HexagonISD::PACKHL";
case HexagonISD::RET_FLAG: return "HexagonISD::RET_FLAG";
case HexagonISD::TC_RETURN: return "HexagonISD::TC_RETURN";
case HexagonISD::VCOMBINE: return "HexagonISD::VCOMBINE";
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.h?rev=319352&r1=319351&r2=319352&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.h (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.h Wed Nov 29 11:59:29 2017
@@ -51,7 +51,6 @@ namespace HexagonISD {
CP, // Constant pool.
COMBINE,
- PACKHL,
VSPLAT,
VASL,
VASR,
Modified: llvm/trunk/lib/Target/Hexagon/HexagonPatterns.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonPatterns.td?rev=319352&r1=319351&r2=319352&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonPatterns.td (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonPatterns.td Wed Nov 29 11:59:29 2017
@@ -464,7 +464,7 @@ def: Pat<(v4i8 (trunc V4I16:$Rs)),
// S2_vtruneh
def: Pat<(v2i16 (trunc V2I32:$Rs)),
- (LoReg (S2_packhl (HiReg $Rs), (LoReg $Rs)))>;
+ (A2_combine_ll (HiReg $Rs), (LoReg $Rs))>;
// --(4) Logical ---------------------------------------------------------
@@ -946,14 +946,11 @@ def SDTHexagonVCOMBINE: SDTypeProfile<1,
SDTCisSubVecOfVec<1, 0>]>;
def SDTHexagonVPACK: SDTypeProfile<1, 2, [SDTCisSameAs<1, 2>, SDTCisVec<1>]>;
-def HexagonPACKHL: SDNode<"HexagonISD::PACKHL", SDTHexagonI64I32I32>;
def HexagonCOMBINE: SDNode<"HexagonISD::COMBINE", SDTHexagonI64I32I32>;
def HexagonVCOMBINE: SDNode<"HexagonISD::VCOMBINE", SDTHexagonVCOMBINE>;
def HexagonVPACKE: SDNode<"HexagonISD::VPACKE", SDTHexagonVPACK>;
def HexagonVPACKO: SDNode<"HexagonISD::VPACKO", SDTHexagonVPACK>;
-def: OpR_RR_pat<S2_packhl, pf2<HexagonPACKHL>, i64, I32>;
-
def: Pat<(HexagonCOMBINE I32:$Rs, I32:$Rt), (Combinew $Rs, $Rt)>;
// The complexity of the combines involving immediates should be greater
Added: llvm/trunk/test/CodeGen/Hexagon/vect/vect-infloop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Hexagon/vect/vect-infloop.ll?rev=319352&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Hexagon/vect/vect-infloop.ll (added)
+++ llvm/trunk/test/CodeGen/Hexagon/vect/vect-infloop.ll Wed Nov 29 11:59:29 2017
@@ -0,0 +1,10 @@
+; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
+; RUN: llc -march=hexagon < %s | FileCheck %s
+; CHECK: combine
+
+define void @a(<2 x double>* %p, <2 x i8>* %q) {
+ %t = load <2 x double>, <2 x double>* %p
+ %r = fptosi <2 x double> %t to <2 x i8>
+ store <2 x i8> %r, <2 x i8>* %q
+ ret void
+}
Removed: llvm/trunk/test/CodeGen/Hexagon/vect/vect-packhl.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Hexagon/vect/vect-packhl.ll?rev=319351&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Hexagon/vect/vect-packhl.ll (original)
+++ llvm/trunk/test/CodeGen/Hexagon/vect/vect-packhl.ll (removed)
@@ -1,10 +0,0 @@
-; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
-; RUN: llc -march=hexagon < %s | FileCheck %s
-; CHECK: packhl
-
-define void @a(<2 x double>* %p, <2 x i8>* %q) {
- %t = load <2 x double>, <2 x double>* %p
- %r = fptosi <2 x double> %t to <2 x i8>
- store <2 x i8> %r, <2 x i8>* %q
- ret void
-}
More information about the llvm-commits
mailing list