[all-commits] [llvm/llvm-project] 3764f5: [mlir][llvm] Fix negative GEP crash in type consis...

Rik Huijzer via All-commits all-commits at lists.llvm.org
Mon Dec 11 03:30:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3764f5e816f3769bd1770062e65fcc0192464f8a
      https://github.com/llvm/llvm-project/commit/3764f5e816f3769bd1770062e65fcc0192464f8a
  Author: Rik Huijzer <github at huijzer.xyz>
  Date:   2023-12-11 (Mon, 11 Dec 2023)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/Transforms/TypeConsistency.cpp
    M mlir/test/Dialect/LLVMIR/type-consistency.mlir

  Log Message:
  -----------
  [mlir][llvm] Fix negative GEP crash in type consistency (#74859)

Fixes https://github.com/llvm/llvm-project/issues/74453.

The `gepToByteOffset` was implicitly casting an signed integer to an
unsigned integer even though negative dimensions are valid for
`llvm.getelementptr`.

---------

Co-authored-by: Tobias Gysi <tobias.gysi at nextsilicon.com>




More information about the All-commits mailing list