Young Kim 0777a7a020 Merge branch 'master' into rtmaster 7 years ago
..
ABIInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
BackendUtil.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGAtomic.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGBlocks.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGBlocks.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGBuilder.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGBuiltin.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCUDANV.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCUDARuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCUDARuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCXXABI.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCall.cpp 94acf99408 Support case struct parameter used as function call argument. (#429) 8 years ago
CGCall.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGClass.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCleanup.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGCleanup.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGDebugInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGDebugInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGDecl.cpp 9d8a3f5dac Generate global variable for local constant. (#891) 7 years ago
CGDeclCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGException.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGExpr.cpp c011ec3d55 Support vector constant in TryEvalIntrinsic. (#902) 7 years ago
CGExprAgg.cpp 277bb0bce3 Use memcpy when cast cbuffer constant into static global. (#1125) 7 years ago
CGExprCXX.cpp cea8048912 Use CreateTempAlloca to make sure alloca is in entry block. (#165) 8 years ago
CGExprComplex.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGExprConstant.cpp 6539689175 Make sure default val for cbuffer element is ignored. (#921) 7 years ago
CGExprScalar.cpp 9476863370 Use lshr for uint vectors and remove the and for shift. (#1174) 7 years ago
CGHLSLMS.cpp 0777a7a020 Merge branch 'master' into rtmaster 7 years ago
CGHLSLRuntime.cpp db586162c2 Move some functions from clang CodeGen to clang AST (#193) 8 years ago
CGHLSLRuntime.h aec310b4ea Use memcpy to copy when possible in clang code gen to avoid flatten too early. (#247) 8 years ago
CGLoopInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGLoopInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGObjC.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGObjCGNU.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGObjCMac.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGObjCRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGObjCRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGOpenCLRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGOpenCLRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGOpenMPRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGOpenMPRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGRecordLayout.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGRecordLayoutBuilder.cpp 40369a5884 Structure alignment Change (#721) 7 years ago
CGStmt.cpp 1d0da57987 Make sure no short circuiting. (#336) 8 years ago
CGStmtOpenMP.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGVTT.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGVTables.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGVTables.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CGValue.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CMakeLists.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenABITypes.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenAction.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
CodeGenFunction.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenFunction.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenModule.cpp 32af2dad66 Fix static data member const issue. (#668) 8 years ago
CodeGenModule.h d5bb3089cf Add support for custom allocators (#390) 8 years ago
CodeGenPGO.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenPGO.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenTBAA.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenTBAA.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CodeGenTypes.cpp 7c6c4bc036 Merged PR 37: Include template args for names of template specializations 7 years ago
CodeGenTypes.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CoverageMappingGen.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
CoverageMappingGen.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
EHScopeStack.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
ItaniumCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
MicrosoftCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
ModuleBuilder.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
ObjectFilePCHContainerOperations.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
SanitizerMetadata.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
SanitizerMetadata.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago
TargetInfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
TargetInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 8 years ago

README.txt

IRgen optimization opportunities.

//===---------------------------------------------------------------------===//

The common pattern of
--
short x; // or char, etc
(x == 10)
--
generates an zext/sext of x which can easily be avoided.

//===---------------------------------------------------------------------===//

Bitfields accesses can be shifted to simplify masking and sign
extension. For example, if the bitfield width is 8 and it is
appropriately aligned then is is a lot shorter to just load the char
directly.

//===---------------------------------------------------------------------===//

It may be worth avoiding creation of alloca's for formal arguments
for the common situation where the argument is never written to or has
its address taken. The idea would be to begin generating code by using
the argument directly and if its address is taken or it is stored to
then generate the alloca and patch up the existing code.

In theory, the same optimization could be a win for block local
variables as long as the declaration dominates all statements in the
block.

NOTE: The main case we care about this for is for -O0 -g compile time
performance, and in that scenario we will need to emit the alloca
anyway currently to emit proper debug info. So this is blocked by
being able to emit debug information which refers to an LLVM
temporary, not an alloca.

//===---------------------------------------------------------------------===//

We should try and avoid generating basic blocks which only contain
jumps. At -O0, this penalizes us all the way from IRgen (malloc &
instruction overhead), all the way down through code generation and
assembly time.

On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just
direct branches!

//===---------------------------------------------------------------------===//