[all-commits] [llvm/llvm-project] 545096: [InstCombine] Check source element type in phi of ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Feb 11 05:26:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 545096308586feae7dfdaea62e0145dc9ffe3728
      https://github.com/llvm/llvm-project/commit/545096308586feae7dfdaea62e0145dc9ffe3728
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

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

  Log Message:
  -----------
  [InstCombine] Check source element type in phi of gep fold

Rather than checking that the type is the same (which is always
the case, given how these are part of the same phi) check that the
source element type is the same. With opaque pointers, this is no
longer implied.




More information about the All-commits mailing list