[all-commits] [llvm/llvm-project] d222ba: [InstCombine] Handle GEP scalar/vector base mismat...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue May 10 02:26:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d222bab6720ad8dbaf2a307956faf228918e10d2
      https://github.com/llvm/llvm-project/commit/d222bab6720ad8dbaf2a307956faf228918e10d2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-05-10 (Tue, 10 May 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/opaque-ptr.ll

  Log Message:
  -----------
  [InstCombine] Handle GEP scalar/vector base mismatch (PR55363)

30a12f3f6322399185fdceffe176152a58bb84ae switched the type check
to use the GEP result type rather than the GEP operand type.
However, the GEP result types may match even if the operand types
don't, in case GEPs with scalar/vector base and vector index
are compared.

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




More information about the All-commits mailing list