diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-01-13 20:51:35 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-01-13 20:51:35 +0000 |
commit | 298d1a6b210a07108a322e91c50a0abf2a292f25 (patch) | |
tree | 7ec087502d571e955391179f8b64bbdaa62d2e59 /include/llvm/CodeGen | |
parent | de0847d6a5785ca3dd52798ce2341ca94928a1c7 (diff) | |
download | llvm-298d1a6b210a07108a322e91c50a0abf2a292f25.tar.gz llvm-298d1a6b210a07108a322e91c50a0abf2a292f25.tar.bz2 llvm-298d1a6b210a07108a322e91c50a0abf2a292f25.tar.xz |
[DAG] Teach DAG to also reassociate vector operations
This commit teaches DAG to reassociate vector ops, which in turn enables
constant folding of vector op chains that appear later on during custom lowering
and DAG combine.
Reviewed by Andrea Di Biagio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 08eda723c6..00773b3e66 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1492,6 +1492,8 @@ public: unsigned &SplatBitSize, bool &HasAnyUndefs, unsigned MinSplatBits = 0, bool isBigEndian = false); + bool isConstant() const; + static inline bool classof(const SDNode *N) { return N->getOpcode() == ISD::BUILD_VECTOR; } |