[all-commits] [llvm/llvm-project] 8b354c: [ConstantFolding] check applicability of AllOnes c...

Jameson Nash via All-commits all-commits at lists.llvm.org
Sun Jul 19 10:15:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b354cc8db413f596c95b4f3240fabaa3e2c931e
      https://github.com/llvm/llvm-project/commit/8b354cc8db413f596c95b4f3240fabaa3e2c931e
  Author: Jameson Nash <vtjnash at gmail.com>
  Date:   2020-07-19 (Sun, 19 Jul 2020)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    A llvm/test/Analysis/ConstantFolding/allones.ll

  Log Message:
  -----------
  [ConstantFolding] check applicability of AllOnes constant creation first

The getAllOnesValue can only handle things that are bitcast from a
ConstantInt, while here we bitcast through a pointer, so we may see more
complex objects (like Array or Struct).

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




More information about the All-commits mailing list