1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Brain cramp..

llvm-svn: 29370
This commit is contained in:
Evan Cheng 2006-07-27 23:35:40 +00:00
parent 219ced1bdd
commit 9d43eb616a

View File

@ -281,9 +281,7 @@ void X86DAGToDAGISel::DetermineTopologicalOrdering() {
void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) { void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) {
if (!ReachibilityMatrix) { if (!ReachibilityMatrix) {
DetermineTopologicalOrdering(); DetermineTopologicalOrdering();
unsigned RMSize = DAGSize * DAGSize / 8; unsigned RMSize = (DAGSize * DAGSize + 7) / 8;
if ((DAGSize * DAGSize) % 8)
RMSize++;
ReachibilityMatrix = new unsigned char[RMSize]; ReachibilityMatrix = new unsigned char[RMSize];
memset(ReachibilityMatrix, 0, RMSize); memset(ReachibilityMatrix, 0, RMSize);
} }