[all-commits] [llvm/llvm-project] 3ea077: [ConstantFold][NFC] Compile time optimization for ...

Thomas via All-commits all-commits at lists.llvm.org
Mon Mar 30 11:27:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ea0774b13a538759aa1a68f30130d18ddb0d3f2
      https://github.com/llvm/llvm-project/commit/3ea0774b13a538759aa1a68f30130d18ddb0d3f2
  Author: Thomas Raoux <thomasraoux at google.com>
  Date:   2020-03-30 (Mon, 30 Mar 2020)

  Changed paths:
    M llvm/include/llvm/IR/Constants.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/lib/IR/Constants.cpp
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp

  Log Message:
  -----------
  [ConstantFold][NFC] Compile time optimization for large vectors

Optimize the common case of splat vector constant. For large vector
going through all elements is expensive. For splatr/broadcast cases we
can skip going through all elements.

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




More information about the All-commits mailing list