diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-07 18:13:33 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-07 18:13:33 +0000 |
| commit | 67825e3b8bfb36b3e3b9a273b644a99dec1f227b (patch) | |
| tree | f1acdf458816a9488fe800fb6c366e0ff83d5671 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
| parent | 57e9bbdc49243250a494463ece6bce33d6bbc3fb (diff) | |
| download | external_llvm-67825e3b8bfb36b3e3b9a273b644a99dec1f227b.zip external_llvm-67825e3b8bfb36b3e3b9a273b644a99dec1f227b.tar.gz external_llvm-67825e3b8bfb36b3e3b9a273b644a99dec1f227b.tar.bz2 | |
fix 80 col violation, patch by Alastair Lynn
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a336e0a..5d3a6c3 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3779,7 +3779,8 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) { if (N0.getOpcode() == ISD::TRUNCATE) return DAG.getNode(ISD::TRUNCATE, N->getDebugLoc(), VT, N0.getOperand(0)); // fold (truncate (ext x)) -> (ext x) or (truncate x) or x - if (N0.getOpcode() == ISD::ZERO_EXTEND || N0.getOpcode() == ISD::SIGN_EXTEND|| + if (N0.getOpcode() == ISD::ZERO_EXTEND || + N0.getOpcode() == ISD::SIGN_EXTEND || N0.getOpcode() == ISD::ANY_EXTEND) { if (N0.getOperand(0).getValueType().bitsLT(VT)) // if the source is smaller than the dest, we still need an extend |
