mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Total brain cramp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5f1627d2c
commit
0cec956d81
@ -1103,7 +1103,7 @@ SDOperand DAGCombiner::visitSUB(SDNode *N) {
|
|||||||
|
|
||||||
// fold (sub x, x) -> 0
|
// fold (sub x, x) -> 0
|
||||||
if (N0 == N1) {
|
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
|
// For example, zero vectors might be normalized to a particular vector
|
||||||
// type to ensure they are CSE'd. Avoid issuing zero vector nodes of
|
// type to ensure they are CSE'd. Avoid issuing zero vector nodes of
|
||||||
// *unexpected* type after legalization.
|
// *unexpected* type after legalization.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user