diff options
author | Craig Topper <craig.topper@intel.com> | 2018-11-04 02:10:18 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-11-04 02:10:18 +0000 |
commit | 1ba86188cf4db26c79323ba15c5a4545ac6a602f (patch) | |
tree | d140a2ee49f22d46a0faf728c8442c07af0ea0b4 /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
parent | 0ba9339cdeb0d5d3af3185a6c3814679c8777a6d (diff) | |
download | bcm5719-llvm-1ba86188cf4db26c79323ba15c5a4545ac6a602f.tar.gz bcm5719-llvm-1ba86188cf4db26c79323ba15c5a4545ac6a602f.zip |
[SelectionDAG] Remove special methods for creating *_EXTEND_VECTOR_INREG nodes. Move asserts into getNode.
These methods were just wrappers around getNode with additional asserts (identical and repeated 3 times). But getNode already has a switch that can be used to hold these asserts that allows them to be shared for all 3 opcodes. This also enables checking on the places that create these nodes without using the wrappers.
The rest of the patch is just changing all callers to use getNode directly.
llvm-svn: 346087
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index 284c4e5b3dd..bfc00ea28ef 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -872,7 +872,7 @@ SDValue VectorLegalizer::ExpandSIGN_EXTEND_VECTOR_INREG(SDValue Op) { // First build an any-extend node which can be legalized above when we // recurse through it. - Op = DAG.getAnyExtendVectorInReg(Src, DL, VT); + Op = DAG.getNode(ISD::ANY_EXTEND_VECTOR_INREG, DL, VT, Src); // Now we need sign extend. Do this by shifting the elements. Even if these // aren't legal operations, they have a better chance of being legalized |