Lei Zhang 406fe38220 Add validation checks for HS/GS attributes after parsing (#768) 8 lat temu
..
ABIInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
BackendUtil.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGAtomic.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGBlocks.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGBlocks.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGBuilder.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGBuiltin.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCUDANV.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCUDARuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCUDARuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCXXABI.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCall.cpp 94acf99408 Support case struct parameter used as function call argument. (#429) 8 lat temu
CGCall.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGClass.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCleanup.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGCleanup.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGDebugInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGDebugInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGDecl.cpp faaf47daa5 Mark noalias for out parameters. (#438) 8 lat temu
CGDeclCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGException.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGExpr.cpp 6323ba161b Generate GEP for DerivedToBase instead of bitcast. (#283) 8 lat temu
CGExprAgg.cpp aec310b4ea Use memcpy to copy when possible in clang code gen to avoid flatten too early. (#247) 8 lat temu
CGExprCXX.cpp cea8048912 Use CreateTempAlloca to make sure alloca is in entry block. (#165) 8 lat temu
CGExprComplex.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGExprConstant.cpp 2a7cd92683 Replace static const global struct for library. (#436) 8 lat temu
CGExprScalar.cpp 1d0da57987 Make sure no short circuiting. (#336) 8 lat temu
CGHLSLMS.cpp 406fe38220 Add validation checks for HS/GS attributes after parsing (#768) 8 lat temu
CGHLSLRuntime.cpp db586162c2 Move some functions from clang CodeGen to clang AST (#193) 8 lat temu
CGHLSLRuntime.h aec310b4ea Use memcpy to copy when possible in clang code gen to avoid flatten too early. (#247) 8 lat temu
CGLoopInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGLoopInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGObjC.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGObjCGNU.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGObjCMac.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGObjCRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGObjCRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGOpenCLRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGOpenCLRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGOpenMPRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGOpenMPRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGRecordLayout.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGRecordLayoutBuilder.cpp 40369a5884 Structure alignment Change (#721) 8 lat temu
CGStmt.cpp 1d0da57987 Make sure no short circuiting. (#336) 8 lat temu
CGStmtOpenMP.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGVTT.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGVTables.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGVTables.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CGValue.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CMakeLists.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenABITypes.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenAction.cpp d5bb3089cf Add support for custom allocators (#390) 8 lat temu
CodeGenFunction.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenFunction.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenModule.cpp 32af2dad66 Fix static data member const issue. (#668) 8 lat temu
CodeGenModule.h d5bb3089cf Add support for custom allocators (#390) 8 lat temu
CodeGenPGO.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenPGO.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenTBAA.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenTBAA.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenTypes.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CodeGenTypes.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CoverageMappingGen.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
CoverageMappingGen.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
EHScopeStack.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
ItaniumCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
MicrosoftCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
ModuleBuilder.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
ObjectFilePCHContainerOperations.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
SanitizerMetadata.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
SanitizerMetadata.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu
TargetInfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 lat temu
TargetInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 lat temu

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!

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