[PATCH] D70482: [NFC] Change return type for 'shouldOptimizeForSize'

Evgeniy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 02:29:36 PST 2019


ebrevnov created this revision.
Herald added subscribers: llvm-commits, zzheng, hiraditya.
Herald added a project: LLVM.

Currently 'shouldOptimizeForSize' returns bool to indicate if function should be optimized for size or not. When 'false' is returned it could mean two things. Either we don't need to optimize for size or there is no information. For upcoming changes in LoopVectorizer I need to distinguish between these two cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70482

Files:
  llvm/include/llvm/CodeGen/MachineSizeOpts.h
  llvm/include/llvm/Transforms/Utils/SizeOpts.h
  llvm/lib/CodeGen/MachineSizeOpts.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
  llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
  llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/lib/Transforms/Utils/SizeOpts.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/unittests/Target/X86/MachineSizeOptsTest.cpp
  llvm/unittests/Transforms/Utils/SizeOptsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70482.230218.patch
Type: text/x-patch
Size: 14094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191120/65719fd8/attachment.bin>


More information about the llvm-commits mailing list