[all-commits] [llvm/llvm-project] 5d3412: [InstCombine] Insert a bitcast to enable merging s...

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Mon May 22 07:37:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d3412a6d17bbd57160c252f513779f12ac44eb8
      https://github.com/llvm/llvm-project/commit/5d3412a6d17bbd57160c252f513779f12ac44eb8
  Author: Anshil Gandhi <gandhi21299 at gmail.com>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    M llvm/test/Transforms/InstCombine/merging-multiple-stores-into-successor.ll

  Log Message:
  -----------
  [InstCombine] Insert a bitcast to enable merging similar store insts

Given two Store instructions with equivalent pointer operands,
they could be merged into their common successor basic block if
the value operand of one is bitcasted to match the type of the
other.

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




More information about the All-commits mailing list