diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-03-14 17:28:46 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-03-14 17:28:46 +0000 |
commit | 57195841291c581146cf0890172c69b066d0ec6f (patch) | |
tree | 699c2e313f2ae75b33f1e3744b80b04dff7354aa /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 331f981cc9d35374cce27e0c9a1b16aca6070695 (diff) | |
download | bcm5719-llvm-57195841291c581146cf0890172c69b066d0ec6f.tar.gz bcm5719-llvm-57195841291c581146cf0890172c69b066d0ec6f.zip |
[DAG] use isUndef() ; NFCI
llvm-svn: 263448
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 798627df319..8ec3387b599 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2901,8 +2901,8 @@ void SelectionDAGBuilder::visitShuffleVector(const User &I) { // Pad both vectors with undefs to make them the same length as the mask. unsigned NumConcat = MaskNumElts / SrcNumElts; - bool Src1U = Src1.getOpcode() == ISD::UNDEF; - bool Src2U = Src2.getOpcode() == ISD::UNDEF; + bool Src1U = Src1.isUndef(); + bool Src2U = Src2.isUndef(); SDValue UndefVal = DAG.getUNDEF(SrcVT); SmallVector<SDValue, 8> MOps1(NumConcat, UndefVal); |