mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Total brain cramp.
llvm-svn: 48274
This commit is contained in:
parent
1eca74f70e
commit
ee092b2dfc
@ -1103,7 +1103,7 @@ SDOperand DAGCombiner::visitSUB(SDNode *N) {
|
||||
|
||||
// fold (sub x, x) -> 0
|
||||
if (N0 == N1) {
|
||||
if (!AfterLegalize || !MVT::isVector(VT))
|
||||
if (AfterLegalize && ISD::isBuildVectorAllZeros(N0.Val))
|
||||
// For example, zero vectors might be normalized to a particular vector
|
||||
// type to ensure they are CSE'd. Avoid issuing zero vector nodes of
|
||||
// *unexpected* type after legalization.
|
||||
|
Loading…
Reference in New Issue
Block a user