llvm.org GIT mirror
Merging r168196: into the 3.2 release branch. Make this easier to understand, as suggested by Chandler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168594 91177308-0d34-0410-b5e6-96231b3b80d8 Pawel Wodnicki 8 years ago
2 changed file(s) with 12 addition(s) and 2 deletion(s).
 2066 2066 // Determine Y and Z in the form icmp (X+Y), (X+Z). 2067 2067 Value *Y, *Z; 2068 2068 if (A == C) { 2069 // C + B == C + D -> B == D 2069 2070 Y = B; 2070 2071 Z = D; 2071 2072 } else if (A == D) { 2073 // D + B == C + D -> B == C 2072 2074 Y = B; 2073 2075 Z = C; 2074 2076 } else if (B == C) { 2077 // A + C == C + D -> A == D 2075 2078 Y = A; 2076 2079 Z = D; 2077 } else if (B == D) {⏎ 2080 } else {⏎ 2081 assert(B == D); 2082 // A + D == C + D -> A == C 2078 2083 Y = A; 2079 2084 Z = C; 2080 2085 }
 2357 2357 // Determine Y and Z in the form icmp (X+Y), (X+Z). 2358 2358 Value *Y, *Z; 2359 2359 if (A == C) { 2360 // C + B == C + D -> B == D 2360 2361 Y = B; 2361 2362 Z = D; 2362 2363 } else if (A == D) { 2364 // D + B == C + D -> B == C 2363 2365 Y = B; 2364 2366 Z = C; 2365 2367 } else if (B == C) { 2368 // A + C == C + D -> A == D 2366 2369 Y = A; 2367 2370 Z = D; 2368 } else if (B == D) {⏎ 2371 } else {⏎ 2372 assert(B == D); 2373 // A + D == C + D -> A == C 2369 2374 Y = A; 2370 2375 Z = C; 2371 2376 }