diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-03-14 18:09:43 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-03-14 18:09:43 +0000 |
commit | 75068527093d2ac4a12e2d8310ee3cf3be4458d8 (patch) | |
tree | 466ea90a28438ee2885dc9dff8aba6a3ecc455a8 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | bb9f50014c6695a5831ec786192a1051ff996d45 (diff) | |
download | bcm5719-llvm-75068527093d2ac4a12e2d8310ee3cf3be4458d8.tar.gz bcm5719-llvm-75068527093d2ac4a12e2d8310ee3cf3be4458d8.zip |
[DAG] use !isUndef() ; NFCI
llvm-svn: 263453
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 3881415618e..ee58e5fe2d9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -423,7 +423,7 @@ bool TargetLowering::SimplifyDemandedBits(SDValue Op, NewMask = APInt::getAllOnesValue(BitWidth); } else if (DemandedMask == 0) { // Not demanding any bits from Op. - if (Op.getOpcode() != ISD::UNDEF) + if (!Op.isUndef()) return TLO.CombineTo(Op, TLO.DAG.getUNDEF(Op.getValueType())); return false; } else if (Depth == 6) { // Limit search depth. |