mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Allocating too large an array for ReachibilityMatrix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5fa5de80e2
commit
b3c334674d
@ -281,8 +281,11 @@ void X86DAGToDAGISel::DetermineTopologicalOrdering() {
|
|||||||
void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) {
|
void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) {
|
||||||
if (!ReachibilityMatrix) {
|
if (!ReachibilityMatrix) {
|
||||||
DetermineTopologicalOrdering();
|
DetermineTopologicalOrdering();
|
||||||
ReachibilityMatrix = new unsigned char[DAGSize * DAGSize];
|
unsigned RMSize = DAGSize * DAGSize / 8;
|
||||||
memset(ReachibilityMatrix, 0, DAGSize * DAGSize * sizeof(unsigned char));
|
if ((DAGSize * DAGSize) % 8)
|
||||||
|
RMSize++;
|
||||||
|
ReachibilityMatrix = new unsigned char[RMSize];
|
||||||
|
memset(ReachibilityMatrix, 0, RMSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Idf = f->getNodeId();
|
int Idf = f->getNodeId();
|
||||||
|
Loading…
Reference in New Issue
Block a user