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

            Bug ID: 43501
           Summary: invalid bitcast->gep inbounds
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: nunoplo...@sapo.pt
                CC: llvm-bugs@lists.llvm.org, reg...@cs.utah.edu,
                    spatel+l...@rotateright.com

See below the invalid transformation of a bitcast to a gep inbounds. The input
to the bitcast is a function argument, which could be out-of-bounds.

llvm/test/Transforms/InstCombine/cast.ll

define [4 x float]* @test27([9 x [4 x float]]* %A) {
; CHECK-NEXT: [[C:%.*]] = getelementptr inbounds [9 x [4 x float]], [9 x [4 x
float]]* [[A:%.*]], i64 0, i64 0

  %c = bitcast [9 x [4 x float]]* %A to [4 x float]*
  ret [4 x float]* %c
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to