[llvm-bugs] [Bug 31250] New: Instcombine tries to create invalid cast to vector

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 3 20:21:13 PST 2016


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

            Bug ID: 31250
           Summary: Instcombine tries to create invalid cast to vector
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: kfischer at college.harvard.edu
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Bugpoint reduced test case:
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bugpoint-output-666e457.bc"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%Dual = type { %Dual.72, %Partials.73 }
%Dual.72 = type { double, %Partials }
%Partials = type { [2 x double] }
%Partials.73 = type { [2 x %Dual.72] }

; Function Attrs: sspreq
define void @"julia_axpy!_65480"() {
top:
  %VectorGep14 = getelementptr inbounds %Dual, %Dual* undef, <8 x i64> undef,
i32 1, i32 0, i64 0, i32 1, i32 0, i64 0
  %0 = bitcast <8 x double*> %VectorGep14 to <8 x i64*>
  unreachable
}

!llvm.module.flags = !{!0}

!0 = !{i32 1, !"Debug Info Version", i32 3}
```
Error:
```
opt -instcombine bug1-reduced.ll -S
opt: /data/keno/llvm/lib/IR/Instructions.cpp:2998: static
llvm::Instruction::CastOps llvm::CastInst::getCastOpcode(const llvm::Value*,
bool, llvm::Type*, bool): Assertion `DestBits == SrcBits && "Illegal cast to
vector (wrong type or size)"' failed.
```

Working on a patch.

-- 
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/20161204/508889f1/attachment.html>


More information about the llvm-bugs mailing list