Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
ABIInfo.h | 06-Dec-2017 | 4.9K | |
Address.h | 06-Dec-2017 | 3.3K | |
Android.bp | 06-Dec-2017 | 106 | |
BackendUtil.cpp | 06-Dec-2017 | 34.2K | |
CGAtomic.cpp | 06-Dec-2017 | 74.9K | |
CGBlocks.cpp | 06-Dec-2017 | 85.8K | |
CGBlocks.h | 06-Dec-2017 | 8.2K | |
CGBuilder.h | 06-Dec-2017 | 12.6K | |
CGBuiltin.cpp | 06-Dec-2017 | 335.9K | |
CGCall.cpp | 06-Dec-2017 | 158.3K | |
CGCall.h | 06-Dec-2017 | 5.5K | |
CGClass.cpp | 06-Dec-2017 | 112.8K | |
CGCleanup.cpp | 06-Dec-2017 | 45.4K | |
CGCleanup.h | 06-Dec-2017 | 19.5K | |
CGCUDABuiltin.cpp | 06-Dec-2017 | 4.4K | |
CGCUDANV.cpp | 06-Dec-2017 | 15K | |
CGCUDARuntime.cpp | 06-Dec-2017 | 1.8K | |
CGCUDARuntime.h | 06-Dec-2017 | 2.1K | |
CGCXX.cpp | 06-Dec-2017 | 12.3K | |
CGCXXABI.cpp | 06-Dec-2017 | 12.1K | |
CGCXXABI.h | 06-Dec-2017 | 25.1K | |
CGDebugInfo.cpp | 06-Dec-2017 | 143K | |
CGDebugInfo.h | 06-Dec-2017 | 25.1K | |
CGDecl.cpp | 06-Dec-2017 | 69.1K | |
CGDeclCXX.cpp | 06-Dec-2017 | 24.4K | |
CGException.cpp | 06-Dec-2017 | 68K | |
CGExpr.cpp | 06-Dec-2017 | 165.3K | |
CGExprAgg.cpp | 06-Dec-2017 | 58.3K | |
CGExprComplex.cpp | 06-Dec-2017 | 41.9K | |
CGExprConstant.cpp | 06-Dec-2017 | 58.5K | |
CGExprCXX.cpp | 06-Dec-2017 | 75.9K | |
CGExprScalar.cpp | 06-Dec-2017 | 133.4K | |
CGLoopInfo.cpp | 06-Dec-2017 | 9.7K | |
CGLoopInfo.h | 06-Dec-2017 | 5.5K | |
CGObjC.cpp | 06-Dec-2017 | 124.9K | |
CGObjCGNU.cpp | 06-Dec-2017 | 122.8K | |
CGObjCMac.cpp | 06-Dec-2017 | 287.5K | |
CGObjCRuntime.cpp | 06-Dec-2017 | 14K | |
CGObjCRuntime.h | 06-Dec-2017 | 13.3K | |
CGOpenCLRuntime.cpp | 06-Dec-2017 | 2.7K | |
CGOpenCLRuntime.h | 06-Dec-2017 | 1.5K | |
CGOpenMPRuntime.cpp | 06-Dec-2017 | 273.2K | |
CGOpenMPRuntime.h | 06-Dec-2017 | 48.5K | |
CGOpenMPRuntimeNVPTX.cpp | 06-Dec-2017 | 14.7K | |
CGOpenMPRuntimeNVPTX.h | 06-Dec-2017 | 6.7K | |
CGRecordLayout.h | 06-Dec-2017 | 7.9K | |
CGRecordLayoutBuilder.cpp | 06-Dec-2017 | 36.2K | |
CGStmt.cpp | 06-Dec-2017 | 82.4K | |
CGStmtOpenMP.cpp | 06-Dec-2017 | 148.5K | |
CGValue.h | 06-Dec-2017 | 18.6K | |
CGVTables.cpp | 06-Dec-2017 | 37.3K | |
CGVTables.h | 06-Dec-2017 | 4.3K | |
CGVTT.cpp | 06-Dec-2017 | 6.7K | |
CMakeLists.txt | 06-Dec-2017 | 1.6K | |
CodeGenABITypes.cpp | 06-Dec-2017 | 2.4K | |
CodeGenAction.cpp | 06-Dec-2017 | 33.8K | |
CodeGenFunction.cpp | 06-Dec-2017 | 74.8K | |
CodeGenFunction.h | 06-Dec-2017 | 147.3K | |
CodeGenModule.cpp | 06-Dec-2017 | 162.4K | |
CodeGenModule.h | 06-Dec-2017 | 47.5K | |
CodeGenPGO.cpp | 06-Dec-2017 | 30.5K | |
CodeGenPGO.h | 06-Dec-2017 | 4.5K | |
CodeGenTBAA.cpp | 06-Dec-2017 | 11.2K | |
CodeGenTBAA.h | 06-Dec-2017 | 5.4K | |
CodeGenTypeCache.h | 06-Dec-2017 | 3K | |
CodeGenTypes.cpp | 06-Dec-2017 | 27.5K | |
CodeGenTypes.h | 06-Dec-2017 | 14.7K | |
CoverageMappingGen.cpp | 06-Dec-2017 | 39.7K | |
CoverageMappingGen.h | 06-Dec-2017 | 3.9K | |
EHScopeStack.h | 06-Dec-2017 | 14.5K | |
ItaniumCXXABI.cpp | 06-Dec-2017 | 147.6K | |
MicrosoftCXXABI.cpp | 06-Dec-2017 | 168.9K | |
ModuleBuilder.cpp | 06-Dec-2017 | 10.7K | |
ObjectFilePCHContainerOperations.cpp | 06-Dec-2017 | 12.1K | |
README.txt | 06-Dec-2017 | 1.8K | |
SanitizerMetadata.cpp | 06-Dec-2017 | 3.9K | |
SanitizerMetadata.h | 06-Dec-2017 | 1.6K | |
SwiftCallingConv.cpp | 06-Dec-2017 | 27.8K | |
TargetInfo.cpp | 06-Dec-2017 | 290.4K | |
TargetInfo.h | 06-Dec-2017 | 9.2K |
1 IRgen optimization opportunities. 2 3 //===---------------------------------------------------------------------===// 4 5 The common pattern of 6 -- 7 short x; // or char, etc 8 (x == 10) 9 -- 10 generates an zext/sext of x which can easily be avoided. 11 12 //===---------------------------------------------------------------------===// 13 14 Bitfields accesses can be shifted to simplify masking and sign 15 extension. For example, if the bitfield width is 8 and it is 16 appropriately aligned then is is a lot shorter to just load the char 17 directly. 18 19 //===---------------------------------------------------------------------===// 20 21 It may be worth avoiding creation of alloca's for formal arguments 22 for the common situation where the argument is never written to or has 23 its address taken. The idea would be to begin generating code by using 24 the argument directly and if its address is taken or it is stored to 25 then generate the alloca and patch up the existing code. 26 27 In theory, the same optimization could be a win for block local 28 variables as long as the declaration dominates all statements in the 29 block. 30 31 NOTE: The main case we care about this for is for -O0 -g compile time 32 performance, and in that scenario we will need to emit the alloca 33 anyway currently to emit proper debug info. So this is blocked by 34 being able to emit debug information which refers to an LLVM 35 temporary, not an alloca. 36 37 //===---------------------------------------------------------------------===// 38 39 We should try and avoid generating basic blocks which only contain 40 jumps. At -O0, this penalizes us all the way from IRgen (malloc & 41 instruction overhead), all the way down through code generation and 42 assembly time. 43 44 On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just 45 direct branches! 46 47 //===---------------------------------------------------------------------===// 48