<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - r230280 caused assertation"
   href="http://llvm.org/bugs/show_bug.cgi?id=22674">22674</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>r230280 caused assertation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, sanjoy@playingwithpointers.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13935" name="attach_13935" title="A testcase">attachment 13935</a> <a href="attachment.cgi?id=13935&action=edit" title="A testcase">[details]</a></span>
A testcase

[hjl@gnu-mic-2 bin]$  ./llc < /tmp/x.ll > x.s
llc: /export/gnu/import/git/llvm/include/llvm/IR/Instructions.h:2281:
llvm::Value* llvm::PHINode::getOperand(unsigned int) const: Assertion
`i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of
range!"' failed.
0  llc             0x0000000001de587e llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  llc             0x0000000001de5b19
2  llc             0x0000000001de47da
3  libpthread.so.0 0x0000003a5520f690
4  libc.so.6       0x0000003a54e35777 gsignal + 55
5  libc.so.6       0x0000003a54e36e68 abort + 328
6  libc.so.6       0x0000003a54e2e6d6
7  libc.so.6       0x0000003a54e2e782
8  llc             0x00000000010b628d
9  llc             0x00000000010b624c
10 llc             0x000000000151965f
llvm::ScalarEvolution::ComputeExitCountExhaustively(llvm::Loop const*,
llvm::Value*, bool) + 327
11 llc             0x0000000001517d00
llvm::ScalarEvolution::ComputeExitLimitFromICmp(llvm::Loop const*,
llvm::ICmpInst*, llvm::BasicBlock*, llvm::BasicBlock*, bool) + 1560
12 llc             0x00000000015175b8
llvm::ScalarEvolution::ComputeExitLimitFromCond(llvm::Loop const*,
llvm::Value*, llvm::BasicBlock*, llvm::BasicBlock*, bool) + 1672
13 llc             0x0000000001516ea6
llvm::ScalarEvolution::ComputeExitLimit(llvm::Loop const*, llvm::BasicBlock*) +
980
14 llc             0x00000000015168f6
llvm::ScalarEvolution::ComputeBackedgeTakenCount(llvm::Loop const*) + 214
15 llc             0x0000000001515920
llvm::ScalarEvolution::getBackedgeTakenInfo(llvm::Loop const*) + 214
16 llc             0x00000000015155d7
llvm::ScalarEvolution::getMaxBackedgeTakenCount(llvm::Loop const*) + 35
17 llc             0x0000000001504557
llvm::ScalarEvolution::getZeroExtendExpr(llvm::SCEV const*, llvm::Type*) + 1245
18 llc             0x0000000001549143
19 llc             0x00000000015499d4
llvm::SCEVExpander::getAddRecExprPHILiterally(llvm::SCEVAddRecExpr const*,
llvm::Loop const*, llvm::Type*, llvm::Type*, llvm::Type*&, bool&) + 2170
20 llc             0x0000000001549e49
llvm::SCEVExpander::expandAddRecExprLiterally(llvm::SCEVAddRecExpr const*) +
829
21 llc             0x000000000154a4c8
llvm::SCEVExpander::visitAddRecExpr(llvm::SCEVAddRecExpr const*) + 74
22 llc             0x000000000154e073
23 llc             0x000000000154bbb1 llvm::SCEVExpander::expand(llvm::SCEV
const*) + 917
24 llc             0x000000000154b78c
llvm::SCEVExpander::expandCodeFor(llvm::SCEV const*, llvm::Type*) + 40
25 llc             0x000000000154b762
llvm::SCEVExpander::expandCodeFor(llvm::SCEV const*, llvm::Type*,
llvm::Instruction*) + 104
26 llc             0x0000000001b45a94
27 llc             0x0000000001b46b22
28 llc             0x0000000001b46e2e
29 llc             0x0000000001b478d4
30 llc             0x0000000001b4807a
31 llc             0x0000000001f60cc5
llvm::LPPassManager::runOnFunction(llvm::Function&) + 965
32 llc             0x0000000001a2855e
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
33 llc             0x0000000001a286ce
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
34 llc             0x0000000001a28a22
35 llc             0x0000000001a290d0
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 244
36 llc             0x0000000001a292ef
llvm::legacy::PassManager::run(llvm::Module&) + 39
37 llc             0x0000000000ba6253
38 llc             0x0000000000ba5438 main + 237
39 libc.so.6       0x0000003a54e21c65 __libc_start_main + 245
40 llc             0x0000000000ba2619
Stack dump:
0.    Program arguments: ./llc 
1.    Running pass 'Function Pass Manager' on module '<stdin>'.
2.    Running pass 'Loop Pass Manager' on function
'@_ZNK4llvm11AttrBuilder13hasAttributesENS_12AttributeSetEy'
3.    Running pass 'Loop Strength Reduction' on basic block '%for.body11'
Aborted</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>