[all-commits] [llvm/llvm-project] bd2b5e: [InstCombine] PR58901 - fix bug with swapping GEP ...

William Junda Huang via All-commits all-commits at lists.llvm.org
Thu Nov 10 12:24:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd2b5ec8038e0256dead6f1650318e6c6150e02a
      https://github.com/llvm/llvm-project/commit/bd2b5ec8038e0256dead6f1650318e6c6150e02a
  Author: William Huang <williamjhuang at google.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    A llvm/test/Transforms/InstCombine/pr58901.ll

  Log Message:
  -----------
  [InstCombine] PR58901 - fix bug with swapping GEP of different types

Fix https://github.com/llvm/llvm-project/issues/58901 by adding stricter check whether non-opaque GEP can be swapped. This will not affect GEP swapping optimization in the future since we are switching to opaque GEP

Reviewed By: clin1

Differential Revision: https://reviews.llvm.org/D137752




More information about the All-commits mailing list