summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-17 18:58:01 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-17 18:58:01 +0000
commit94bdb453a40e53e4318380b5a262ce3c324d10ce (patch)
treeba016c94f7b6741830f594bb9c5890e235c182bc /include
parent63d93faa9b2a8a1a38758f9ca9cff79bc0cac5fc (diff)
downloadllvm-94bdb453a40e53e4318380b5a262ce3c324d10ce.tar.gz
llvm-94bdb453a40e53e4318380b5a262ce3c324d10ce.tar.bz2
llvm-94bdb453a40e53e4318380b5a262ce3c324d10ce.tar.xz
Make DAGCombiner work on vector bitshifts with constant splat vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 0b18d1d358..a6c72ca2d1 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1522,6 +1522,11 @@ public:
unsigned MinSplatBits = 0,
bool isBigEndian = false) const;
+ /// isConstantSplat - Simpler form of isConstantSplat. Get the constant splat
+ /// when you only care about the value. Returns nullptr if this isn't a
+ /// constant splat vector.
+ ConstantSDNode *isConstantSplat() const;
+
bool isConstant() const;
static inline bool classof(const SDNode *N) {