[all-commits] [llvm/llvm-project] 213995: [InstSimplify] Return poison if insertelement touc...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Sun Jan 3 07:43:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2139958b53440074fcab9bb2de15e6ec13cc18eb
      https://github.com/llvm/llvm-project/commit/2139958b53440074fcab9bb2de15e6ec13cc18eb
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-01-04 (Mon, 04 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/out-of-bounds-indexes.ll
    M llvm/test/Transforms/InstCombine/vector_insertelt_shuffle-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vector_insertelt_shuffle.ll
    M llvm/test/Transforms/InstSimplify/insertelement.ll
    M llvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
    M llvm/test/Transforms/InstSimplify/vscale.ll

  Log Message:
  -----------
  [InstSimplify] Return poison if insertelement touches out of bounds

This is a simple patch that updates InstSimplify to return poison if the index is/can be out-of-bounds

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D93990




More information about the All-commits mailing list