[llvm-bugs] [Bug 25256] New: PowerPC: CTR register loop optimization fails with PIC

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 19 12:30:14 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25256

            Bug ID: 25256
           Summary: PowerPC: CTR register loop optimization fails with PIC
           Product: new-bugs
           Version: 3.7
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: eric.schweitz at pgroup.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15117
  --> https://llvm.org/bugs/attachment.cgi?id=15117&action=edit
reduced_fn.ll

The reduced LL file is attached. Host machine is a POWER8.

% llc reduced_fn.ll -o ./vm08.s -mcpu=native -O2 -relocation-model=pic 
Invalid PPC CTR loop!
UNREACHABLE executed at
/proj/scratch/eschweitz/git/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:676!
#0 0x10de5878 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de5878)
#1 0x10de69a0 (/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de69a0)
#2 0x10de6d98 (/proj/scratch/eschweitz/llvm/3.7ppc/bin/llc+0x10de6d98)
0  llc       0x0000000010de5878 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 120
1  llc       0x0000000010de69a0
2  llc       0x0000000010de6d98
3            0x0000100000040478 __kernel_sigtramp_rt64 + 0
4  libc.so.6 0x0000100000400a88 gsignal + 72
5  libc.so.6 0x000010000040693c abort + 620
6  llc       0x0000000010dcaae0 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 688
7  llc       0x000000001031f1d4
8  llc       0x00000000106e8e88
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 216
9  llc       0x0000000010c9de64
llvm::FPPassManager::runOnFunction(llvm::Function&) + 804
10 llc       0x0000000010c9e20c llvm::FPPassManager::runOnModule(llvm::Module&)
+ 76
11 llc       0x0000000010c9ea18
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1320
12 llc       0x0000000010c9f1fc llvm::legacy::PassManager::run(llvm::Module&) +
28
13 llc       0x00000000101289f8 main + 9208
14 libc.so.6 0x00001000003e4d00
15 libc.so.6 0x00001000003e4ef8 __libc_start_main + 200
Stack dump:
0.      Program arguments: llc reduced_fn.ll -o ./vm08.s -mcpu=native -O2
-relocation-model=pic 
1.      Running pass 'Function Pass Manager' on module 'reduced_fn.ll'.
2.      Running pass 'PowerPC CTR Loops Verify' on function '@z000c'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151019/4471ad12/attachment.html>


More information about the llvm-bugs mailing list