[PATCH] D22324: Move a transform from InstCombine to InstSimplify.
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 13 16:42:18 PDT 2016
majnemer created this revision.
majnemer added reviewers: mkuper, spatel, RKSimon.
majnemer added a subscriber: llvm-commits.
This transform doesn't require any new instructions, it can safely live
in InstSimplify.
[ConstantFolding] Extend FoldReinterpretLoadFromConstPtr to handle negative offsets
Treat loads which clip before the start of a global initializer the same
way we treat clipping beyond the end of the initializer: use zeros.
[ConstantFolding] Fold masked loads
We can constant fold a masked load if the operands are appropriately
constant.
http://reviews.llvm.org/D22324
Files:
lib/Analysis/ConstantFolding.cpp
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstSimplify/call.ll
test/Transforms/InstSimplify/load.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22324.63882.patch
Type: text/x-patch
Size: 7070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160713/5e20162d/attachment.bin>
More information about the llvm-commits
mailing list