diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-17 18:58:01 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-17 18:58:01 +0000 |
commit | 94bdb453a40e53e4318380b5a262ce3c324d10ce (patch) | |
tree | ba016c94f7b6741830f594bb9c5890e235c182bc /include | |
parent | 63d93faa9b2a8a1a38758f9ca9cff79bc0cac5fc (diff) | |
download | llvm-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.h | 5 |
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) { |