summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-04-15 18:59:38 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-04-15 18:59:38 +0000
commit9792838905bb2462c7d58ac0817bed2942e994de (patch)
tree49eb31f5011e907740d61c807e0eb26bf1d68779 /llvm/lib/CodeGen
parent620b3da38f52a2a89b1a73b4d8ed8378f580a180 (diff)
downloadbcm5719-llvm-9792838905bb2462c7d58ac0817bed2942e994de.tar.gz
bcm5719-llvm-9792838905bb2462c7d58ac0817bed2942e994de.zip
[SelectionDAG][NFC] haveNoCommonBitsSet(): add FIXME notes
As suggested in https://reviews.llvm.org/D45631#1068338 llvm-svn: 330102
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d35a94061fb..d57f0bf92a3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3636,6 +3636,8 @@ bool SelectionDAG::isEqualTo(SDValue A, SDValue B) const {
return false;
}
+// FIXME: unify with llvm::haveNoCommonBitsSet.
+// FIXME: could also handle masked merge pattern (X & ~M) op (Y & M)
bool SelectionDAG::haveNoCommonBitsSet(SDValue A, SDValue B) const {
assert(A.getValueType() == B.getValueType() &&
"Values must have the same type");
OpenPOWER on IntegriCloud