[PATCH] D59926: Constant folding sometimes creates large constants even though a smaller constant is used multiple times
Ramakota Reddy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 5 07:31:43 PDT 2019
ramred01 updated this revision to Diff 193855.
ramred01 added a comment.
Updated the patch with checks for optimization level to be either -Os or -Oz.
Now, if the compilation is not for size, then the code added by this patch is not executed at all.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59926/new/
https://reviews.llvm.org/D59926
Files:
include/llvm/InitializePasses.h
include/llvm/Transforms/InstCombine/ConstantFoldAnalysis.h
lib/Transforms/InstCombine/CMakeLists.txt
lib/Transforms/InstCombine/ConstantFoldAnalysis.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/InstCombine/do_not_create_large_constants.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59926.193855.patch
Type: text/x-patch
Size: 18757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/46b61142/attachment.bin>
More information about the llvm-commits
mailing list