[all-commits] [llvm/llvm-project] a50c26: [InstCombine] Handle load smaller than one byte in...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Nov 7 08:04:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a50c269c7372f5f0373fe3876ed8f8acf0e2f12d
      https://github.com/llvm/llvm-project/commit/a50c269c7372f5f0373fe3876ed8f8acf0e2f12d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M llvm/lib/Analysis/Loads.cpp
    M llvm/test/Transforms/InstCombine/load-store-forward.ll

  Log Message:
  -----------
  [InstCombine] Handle load smaller than one byte in memset forward

APInt::getSplat() requires that the new size is >= the original
one. If we're loading less than 8 bits, truncate instead.

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




More information about the All-commits mailing list