mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Allocating too large an array for ReachibilityMatrix.
llvm-svn: 29367
This commit is contained in:
parent
17ccdcc415
commit
24b41a766b
@ -281,8 +281,11 @@ void X86DAGToDAGISel::DetermineTopologicalOrdering() {
|
||||
void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) {
|
||||
if (!ReachibilityMatrix) {
|
||||
DetermineTopologicalOrdering();
|
||||
ReachibilityMatrix = new unsigned char[DAGSize * DAGSize];
|
||||
memset(ReachibilityMatrix, 0, DAGSize * DAGSize * sizeof(unsigned char));
|
||||
unsigned RMSize = DAGSize * DAGSize / 8;
|
||||
if ((DAGSize * DAGSize) % 8)
|
||||
RMSize++;
|
||||
ReachibilityMatrix = new unsigned char[RMSize];
|
||||
memset(ReachibilityMatrix, 0, RMSize);
|
||||
}
|
||||
|
||||
int Idf = f->getNodeId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user