Displaying 2 results from an estimated 2 matches for "fmypass".
Did you mean:
mypass
2010 Sep 13
1
[LLVMdev] isLCSSAForm failed
...main()
{
int i;
int first= 0;
int last= 0;
while (last<3) {
last = first;
while (first<=last) {
first++;
for (i=0;i<3;i++)
last++;
if (last>10)
return 0;
}
foo(first);
}
return 0;
}
~
If I test my pass with "gcc -fmypass ./gcc.dg/20030721-1.c -fno-show-column
-S -o 20030721-1.s", it works.
But when I add -O2 to the above command line, I get the following error
message:
LCSSA.cpp:167: virtual bool<unnamed>::LCSSA::runOnLoop(llvm::Loop*,
llvm::LPPassManager&): Assertion `L->isLCSSAForm()' faile...
2010 Sep 13
0
[LLVMdev] isLCSSAForm failed
...main()
{
int i;
int first= 0;
int last= 0;
while (last<3) {
last = first;
while (first<=last) {
first++;
for (i=0;i<3;i++)
last++;
if (last>10)
return 0;
}
foo(first);
}
return 0;
}
~
If I test my pass with "gcc -fmypass ./gcc.dg/20030721-1.c -fno-show-column
-S -o 20030721-1.s", it works.
But when I add -O2 to the above command line, I get the following error
message:
LCSSA.cpp:167: virtual bool<unnamed>::LCSSA::runOnLoop(llvm::Loop*,
llvm::LPPassManager&): Assertion `L->isLCSSAForm()' faile...