[all-commits] [llvm/llvm-project] 26044c: [InstSimplify] Treat invariant group insts as bitc...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Jun 1 16:33:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26044c6a54de3e03c73c5515702b95acdb0b7f22
      https://github.com/llvm/llvm-project/commit/26044c6a54de3e03c73c5515702b95acdb0b7f22
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/invariant.group-load.ll

  Log Message:
  -----------
  [InstSimplify] Treat invariant group insts as bitcasts for load operands

We can look through invariant group intrinsics for the purposes of
simplifying the result of a load.

Since intrinsics can't be constants, but we also don't want to
completely rewrite load constant folding, we convert the load operand to
a constant. For GEPs and bitcasts we just treat them as constants. For
invariant group intrinsics, we treat them as a bitcast.

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list