[all-commits] [llvm/llvm-project] cebd63: [ConstantFolding] check applicability of AllOnes c...
Jameson Nash via All-commits
all-commits at lists.llvm.org
Tue Jul 21 07:42:32 PDT 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: cebd637c88624dfd44520848cb1f43dc8a02ba80
https://github.com/llvm/llvm-project/commit/cebd637c88624dfd44520848cb1f43dc8a02ba80
Author: Jameson Nash <vtjnash at gmail.com>
Date: 2020-07-21 (Tue, 21 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
(cherry picked from commit 8b354cc8db413f596c95b4f3240fabaa3e2c931e)
More information about the All-commits
mailing list