[llvm-bugs] [Bug 25928] New: bundle operands upset tailcallelim

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 22 15:04:45 PST 2015


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

            Bug ID: 25928
           Summary: bundle operands upset tailcallelim
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat t.ll
define void @foo() {
entry:
  %e = alloca i8
  call void undef(i8* undef) [ "foo"(i8* %e) ]
  unreachable
}

$ ~/llvm/Debug+Asserts/bin/opt t.ll -S -tailcallelim
opt: ~/llvm/src/include/llvm/IR/CallSite.h:143: unsigned int
llvm::CallSiteBase<llvm::Function, llvm::BasicBlock, llvm::Value, llvm::User,
llvm::Use, llvm::Instruction, llvm::CallInst, llvm::InvokeInst, llvm::Use
*>::getArgumentNo(const llvm::Use *) const [FunTy = llvm::Function, BBTy =
llvm::BasicBlock, ValTy = llvm::Value, UserTy = llvm::User, UseTy = llvm::Use,
InstrTy = llvm::Instruction, CallTy = llvm::CallInst, InvokeTy =
llvm::InvokeInst, IterTy = llvm::Use *]: Assertion `arg_begin() <= U && U <
arg_end() && "Argument # out of range!"' failed.

-- 
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/20151222/2c2032c9/attachment.html>


More information about the llvm-bugs mailing list