diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 21:52:08 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 21:52:08 +0000 |
commit | ee767fe2d2d742630d2fd40f91f3c54e35cc0668 (patch) | |
tree | 0407bf7c3b6a31ce8b0bb7da15799b74fd46a323 /lib/Target/Mips/MipsISelDAGToDAG.cpp | |
parent | c2171eb3ffb0aaa845de15437cadf2a298f1ea61 (diff) | |
download | llvm-ee767fe2d2d742630d2fd40f91f3c54e35cc0668.tar.gz llvm-ee767fe2d2d742630d2fd40f91f3c54e35cc0668.tar.bz2 llvm-ee767fe2d2d742630d2fd40f91f3c54e35cc0668.tar.xz |
[mips] Fix inefficient code generation.
This patch eliminates the need to emit a constant move instruction when this
pattern is matched:
(select (setgt a, Constant), T, F)
The pattern above effectively turns into this:
(conditional-move (setlt a, Constant + 1), F, T)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Mips/MipsISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp index 78c74ef879..6dff548505 100644 --- a/lib/Target/Mips/MipsISelDAGToDAG.cpp +++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp @@ -109,7 +109,7 @@ private: SDValue &Alias); // getImm - Return a target constant with the specified value. - inline SDValue getImm(const SDNode *Node, unsigned Imm) { + inline SDValue getImm(const SDNode *Node, uint64_t Imm) { return CurDAG->getTargetConstant(Imm, Node->getValueType(0)); } |