[all-commits] [llvm/llvm-project] c6ad00: [InstSimplify] Return poison for out of bounds ext...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Jan 3 09:16:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6ad00d709853e378cd70e34e755942f9d6f0c8f
      https://github.com/llvm/llvm-project/commit/c6ad00d709853e378cd70e34e755942f9d6f0c8f
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/extractelement-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/extractelement.ll
    M llvm/test/Transforms/InstSimplify/2011-09-05-InsertExtractValue.ll
    M llvm/test/Transforms/InstSimplify/extract-element.ll
    M llvm/test/Transforms/InstSimplify/undef.ll
    M llvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
    M llvm/test/Transforms/InstSimplify/vscale.ll

  Log Message:
  -----------
  [InstSimplify] Return poison for out of bounds extractelement

This is the same change as D93990, but for extractelement rather
than insertelement.

> If idx exceeds the length of val for a fixed-length vector, the
> result is a poison value. For a scalable vector, if the value of
> idx exceeds the runtime length of the vector, the result is a
> poison value.




More information about the All-commits mailing list