[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [llvm-bugs] [Bug 43501] New: invalid bitcast->gep inbounds
From:       via llvm-bugs <llvm-bugs () lists ! llvm ! org>
Date:       2019-09-29 16:59:09
Message-ID: bug-43501-206 () http ! bugs ! llvm ! org/
[Download RAW message or body]

--1569776479.a6DeED3.5481
Date: Sun, 29 Sep 2019 10:01:19 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.llvm.org/
Auto-Submitted: auto-generated

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: unassignedbugs@nondot.org
          Reporter: nunoplopes@sapo.pt
                CC: llvm-bugs@lists.llvm.org, regehr@cs.utah.edu,
                    spatel+llvm@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.
--1569776479.a6DeED3.5481
Date: Sun, 29 Sep 2019 10:01:19 -0700
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.llvm.org/
Auto-Submitted: auto-generated

<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - invalid bitcast-&gt;gep inbounds"
   href="https://bugs.llvm.org/show_bug.cgi?id=43501">43501</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>invalid bitcast-&gt;gep inbounds
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs&#64;nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nunoplopes&#64;sapo.pt
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs&#64;lists.llvm.org, regehr&#64;cs.utah.edu, spatel+llvm&#64;rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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]* &#64;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
}</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>
--1569776479.a6DeED3.5481--

[Attachment #3 (text/plain)]

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic