mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 08:36:52 +00:00
fix 80 col violation, patch by Alastair Lynn
llvm-svn: 100639
This commit is contained in:
parent
7816ae8fd0
commit
f520500a06
@ -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
Block a user