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:
parent
219ced1bdd
commit
9d43eb616a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user