diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-19 18:16:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-19 18:16:17 +0000 |
commit | 6a402dc952ccad3f8fd0d9e272dbdd261f50854e (patch) | |
tree | ce5b352f432a1f7886d72ec86ab2d169f36b9b62 /include | |
parent | b7be0e8afc5378c77c70e3c0fb6a03c74e551688 (diff) |
Add an x86 peep that narrows TEST instructions to forms that use
a smaller encoding. These kinds of patterns are very frequent in
sqlite3, for example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 47df8672f4..1e0b4f1e69 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -686,6 +686,11 @@ public: const std::vector<EVT> &ResultTys, const SDValue *Ops, unsigned NumOps); + /// getTargetExtractSubreg - A convenience function for creating + /// TargetInstrInfo::EXTRACT_SUBREG nodes. + SDValue getTargetExtractSubreg(int SRIdx, DebugLoc DL, EVT VT, + SDValue Operand); + /// getNodeIfExists - Get the specified node if it's already available, or /// else return NULL. SDNode *getNodeIfExists(unsigned Opcode, SDVTList VTs, |