Displaying 3 results from an estimated 3 matches for "gotsp".
Did you mean:
gots
2008 Nov 20
1
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
...e newBB, including the old
terminator."
So, the terminator of the newBB is exactly the same as the terminator of the
oldBB. IF the oldBB has multiple successors, then newBB will have multiple
successors.
Actually there is an example for this (in "wc", the word count program):
for (gotsp = 1; len = read(fd, buf, MAXBSIZE);){
if (len == -1) {
perror(file);
exit(1);
}
// do other stuff
}
Compiled with llvm-gcc -O1, the loop header has three successors: one to
inside the loop, one to outside the loop, and the third to a block that
contains exit(1).
ExtractLoop() has pr...
2008 Nov 20
0
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
On Nov 19, 2008, at 7:41 AM, Jack Tzu-Han Hung wrote:
> Hi,
>
> I found a problem in CodeExtractor::severSplitPHINodes()
> <CodeExtractor.cpp>.
>
> The algorithm first separates the header block into two, one
> containing only PHI nodes and the other containing the remaining non-
> PHI nodes. The variable NewBB holds the pointer to the latter half
> block.
2008 Nov 19
2
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
Hi,
I found a problem in CodeExtractor::severSplitPHINodes()
<CodeExtractor.cpp>.
The algorithm first separates the header block into two, one containing only
PHI nodes and the other containing the remaining non-PHI nodes. The variable
NewBB holds the pointer to the latter half block. Later, it tries to update
DT information.
if (DT)
DT->splitBlock(NewBB);
In splitBlock, it checks