[llvm-commits] [llvm] r133607 - /llvm/trunk/lib/CodeGen/TailDuplication.cpp

Chad Rosier mcrosier at apple.com
Wed Jun 22 13:44:25 PDT 2011


Hi Rafael,
I'm seeing a failure in gccTestSuite for gcc.c-torture/compile/pr21356.c (errors below).  This is causing one of our internal buildbots to fail.  Would you mind taking a look?

 Regards,
  Chad 

Test Run By mcrosier on Wed Jun 22 13:32:56 2011
Native configuration is i386-apple-darwin10

                === gcc tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /Users/mcrosier/clang-gcc-4_2-testsuite/src/config/default.exp as tool-and-target-specific interface file.
Running /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/compile.exp ...
Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -O0  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -O0 -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
PASS: gcc.c-torture/compile/pr21356.c  -O0  (test for excess errors)
Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -O1  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -O1 -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'
compiler exited with status 1
output is:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

FAIL: gcc.c-torture/compile/pr21356.c  -O1  (test for excess errors)
Excess errors:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -O2  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -O2 -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'
compiler exited with status 1
output is:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

FAIL: gcc.c-torture/compile/pr21356.c  -O2  (test for excess errors)
Excess errors:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -O3 -fomit-frame-pointer  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -O3 -fomit-frame-pointer -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp2'
compiler exited with status 1
output is:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp2'

FAIL: gcc.c-torture/compile/pr21356.c  -O3 -fomit-frame-pointer  (test for excess errors)
Excess errors:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp2'

Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -O3 -g  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -O3 -g -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp12'
compiler exited with status 1
output is:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp12'

FAIL: gcc.c-torture/compile/pr21356.c  -O3 -g  (test for excess errors)
Excess errors:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp12'

Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang   -Os  -w -fno-show-column -c  -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -Os -w -fno-show-column -c -o pr21356.o /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/pr21356.c
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'
compiler exited with status 1
output is:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

FAIL: gcc.c-torture/compile/pr21356.c  -Os  (test for excess errors)
Excess errors:
fatal error: error in backend: unsupported relocation of undefined symbol 'Ltmp7'

testcase /Users/mcrosier/clang-gcc-4_2-testsuite/src/gcc.c-torture/compile/compile.exp completed in 0 seconds

                === gcc Summary ===

# of expected passes            1
# of unexpected failures        5
Executing on host: /Users/mcrosier/llvm-clean/install/bin/clang -v    (timeout = 300)
spawn /Users/mcrosier/llvm-clean/install/bin/clang -v
clang version 3.0 (trunk 133604)
Target: x86_64-apple-darwin
Thread model: posix
/Users/mcrosier/llvm-clean/install/bin/clang  version 3.0 (trunk 133604)

runtest completed at Wed Jun 22 13:32:59 2011


On Jun 21, 2011, at 9:01 PM, Rafael Espindola wrote:

> Author: rafael
> Date: Tue Jun 21 23:01:58 2011
> New Revision: 133607
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=133607&view=rev
> Log:
> Reenable the optimization added in 133415, but change the definition of a "simple" bb to
> be one with only one unconditional branch and no phis. Duplicating the phis in this case
> is possible, but requeres liveness analysis or breaking edges.
> 
> Modified:
>    llvm/trunk/lib/CodeGen/TailDuplication.cpp
> 
> Modified: llvm/trunk/lib/CodeGen/TailDuplication.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TailDuplication.cpp?rev=133607&r1=133606&r2=133607&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/TailDuplication.cpp (original)
> +++ llvm/trunk/lib/CodeGen/TailDuplication.cpp Tue Jun 21 23:01:58 2011
> @@ -568,9 +568,9 @@
> TailDuplicatePass::isSimpleBB(MachineBasicBlock *TailBB) {
>   if (TailBB->succ_size() != 1)
>     return false;
> -  MachineBasicBlock::iterator I = TailBB->getFirstNonPHI();
> +  MachineBasicBlock::iterator I = TailBB->begin();
>   MachineBasicBlock::iterator E = TailBB->end();
> -  while (I->isDebugValue() && I != E)
> +  while (I != E && I->isDebugValue())
>     ++I;
>   if (I == E)
>     return true;
> @@ -712,7 +712,7 @@
>   DenseSet<unsigned> UsedByPhi;
>   getRegsUsedByPHIs(*TailBB, &UsedByPhi);
> 
> -  if (0 && isSimpleBB(TailBB))
> +  if (isSimpleBB(TailBB))
>     return duplicateSimpleBB(TailBB, TDBBs, UsedByPhi, Copies);
> 
>   // Iterate through all the unique predecessors and tail-duplicate this
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list