[all-commits] [llvm/llvm-project] be6d7c: [InstCombine] reduce code duplication for checking...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed May 18 06:17:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be6d7cc93c45fff4c891c4b4952a7acca2439bc2
      https://github.com/llvm/llvm-project/commit/be6d7cc93c45fff4c891c4b4952a7acca2439bc2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

  Log Message:
  -----------
  [InstCombine] reduce code duplication for checking types; NFC


  Commit: 990cc49ca0ca216b3901beb015e5c00d2da40bf2
      https://github.com/llvm/llvm-project/commit/990cc49ca0ca216b3901beb015e5c00d2da40bf2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll

  Log Message:
  -----------
  [InstCombine] avoid crash on fold of icmp with cast operand

We could do better by inserting a bitcast from scalar int
to vector int or using an insertelement (the alternate test
does not crash because there's an independent fold like that).

But this doesn't seem like a likely pattern, so just bail out
for now.

Fixes issue #55516.


Compare: https://github.com/llvm/llvm-project/compare/00a12585933e...990cc49ca0ca


More information about the All-commits mailing list