OSDN Git Service

[LegalizeVectorOps] Add FSHL/FSHR to the list of vector operations that should be...
authorCraig Topper <craig.topper@intel.com>
Sun, 6 Jan 2019 07:06:35 +0000 (07:06 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 6 Jan 2019 07:06:35 +0000 (07:06 +0000)
The FSHL/FSHR nodes are handled in the expand function, but they need to also be listed in the code that queries for the operation action too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350490 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

index 4df02c6..753158d 100644 (file)
@@ -351,6 +351,8 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
   case ISD::SHL:
   case ISD::SRA:
   case ISD::SRL:
+  case ISD::FSHL:
+  case ISD::FSHR:
   case ISD::ROTL:
   case ISD::ROTR:
   case ISD::BSWAP: