forked from OSchip/llvm-project
fix 80 col violation, patch by Alastair Lynn
llvm-svn: 100639
This commit is contained in:
parent
29233c0458
commit
6855d62768
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue