[all-commits] [llvm/llvm-project] 843c0a: [ConstantFold] Fold extractelement of getelementptr

jayfoad via All-commits all-commits at lists.llvm.org
Mon Oct 28 11:32:53 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 843c0adf0f7449a4167d20b399f70f6943d21d5e
      https://github.com/llvm/llvm-project/commit/843c0adf0f7449a4167d20b399f70f6943d21d5e
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/test/Analysis/ConstantFolding/gep-zeroinit-vector.ll
    M llvm/test/Transforms/InstCombine/vec_demanded_elts.ll
    M llvm/test/Transforms/LoopVectorize/X86/constant-fold.ll

  Log Message:
  -----------
  [ConstantFold] Fold extractelement of getelementptr

Summary:
Getelementptr has vector type if any of its operands are vectors
(the scalar operands being implicitly broadcast to all vector elements).
Extractelement applied to a vector getelementptr can be folded by
applying the extractelement in turn to all of the vector operands.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list