diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 23:35:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 23:35:40 +0000 |
commit | 0e2c36fcc22be3435b2aa5b0e0b1824a2b3a969e (patch) | |
tree | 4d07a7c3cc6bb463d73f1e96acdf04aec0737b19 /lib/Target | |
parent | a6e216f45606af4e2ccbe98db84a018373822f56 (diff) | |
download | external_llvm-0e2c36fcc22be3435b2aa5b0e0b1824a2b3a969e.zip external_llvm-0e2c36fcc22be3435b2aa5b0e0b1824a2b3a969e.tar.gz external_llvm-0e2c36fcc22be3435b2aa5b0e0b1824a2b3a969e.tar.bz2 |
Brain cramp..
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index b6d2a8e..798337c 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -281,9 +281,7 @@ void X86DAGToDAGISel::DetermineTopologicalOrdering() { void X86DAGToDAGISel::DeterminReachibility(SDNode *f, SDNode *t) { if (!ReachibilityMatrix) { DetermineTopologicalOrdering(); - unsigned RMSize = DAGSize * DAGSize / 8; - if ((DAGSize * DAGSize) % 8) - RMSize++; + unsigned RMSize = (DAGSize * DAGSize + 7) / 8; ReachibilityMatrix = new unsigned char[RMSize]; memset(ReachibilityMatrix, 0, RMSize); } |