diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-10-14 01:29:07 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-10-14 01:29:07 +0000 |
commit | 216def8ecfb8d2b03520a4fe004d498ad7b8b1c9 (patch) | |
tree | 9a7ba70594ea7e07a703e3b5c18732f972a0cd18 /lib | |
parent | b4871ad6949a00e6d01985401ca038f4ed475d2d (diff) | |
download | external_llvm-216def8ecfb8d2b03520a4fe004d498ad7b8b1c9.zip external_llvm-216def8ecfb8d2b03520a4fe004d498ad7b8b1c9.tar.gz external_llvm-216def8ecfb8d2b03520a4fe004d498ad7b8b1c9.tar.bz2 |
fold sext_in_reg, sext_in_reg where both have the same VT. This was
popping up in Fourinarow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 4997dba..879dc5b 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1330,7 +1330,7 @@ SDOperand DAGCombiner::visitSIGN_EXTEND_INREG(SDNode *N) { } // fold (sext_in_reg (sext_in_reg x, VT2), VT1) -> (sext_in_reg x, minVT) pt1 if (N0.getOpcode() == ISD::SIGN_EXTEND_INREG && - cast<VTSDNode>(N0.getOperand(1))->getVT() < EVT) { + cast<VTSDNode>(N0.getOperand(1))->getVT() <= EVT) { return N0; } // fold (sext_in_reg (sext_in_reg x, VT2), VT1) -> (sext_in_reg x, minVT) pt2 |