Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
ABIInfo.h | 10-Mar-2015 | 2.3K | |
Android.mk | 10-Mar-2015 | 1.7K | |
BackendUtil.cpp | 10-Mar-2015 | 21.7K | |
CGAtomic.cpp | 10-Mar-2015 | 43.8K | |
CGBlocks.cpp | 10-Mar-2015 | 83.3K | |
CGBlocks.h | 10-Mar-2015 | 7.8K | |
CGBuilder.h | 10-Mar-2015 | 1.6K | |
CGBuiltin.cpp | 10-Mar-2015 | 254.5K | |
CGCall.cpp | 10-Mar-2015 | 116.9K | |
CGCall.h | 10-Mar-2015 | 5.2K | |
CGClass.cpp | 10-Mar-2015 | 81K | |
CGCleanup.cpp | 10-Mar-2015 | 41.7K | |
CGCleanup.h | 10-Mar-2015 | 16.1K | |
CGCUDANV.cpp | 16-Dec-2014 | 4.3K | |
CGCUDARuntime.cpp | 10-Mar-2015 | 1.9K | |
CGCUDARuntime.h | 10-Mar-2015 | 1.4K | |
CGCXX.cpp | 10-Mar-2015 | 14.2K | |
CGCXXABI.cpp | 10-Mar-2015 | 12K | |
CGCXXABI.h | 10-Mar-2015 | 22.9K | |
CGDebugInfo.cpp | 10-Mar-2015 | 128.4K | |
CGDebugInfo.h | 10-Mar-2015 | 19.6K | |
CGDecl.cpp | 10-Mar-2015 | 64.3K | |
CGDeclCXX.cpp | 10-Mar-2015 | 20.7K | |
CGException.cpp | 10-Mar-2015 | 58.4K | |
CGExpr.cpp | 10-Mar-2015 | 130K | |
CGExprAgg.cpp | 10-Mar-2015 | 55.3K | |
CGExprComplex.cpp | 10-Mar-2015 | 32.9K | |
CGExprConstant.cpp | 10-Mar-2015 | 52.8K | |
CGExprCXX.cpp | 10-Mar-2015 | 68.6K | |
CGExprScalar.cpp | 10-Mar-2015 | 126.8K | |
CGLoopInfo.cpp | 10-Mar-2015 | 3.6K | |
CGLoopInfo.h | 10-Mar-2015 | 4.3K | |
CGObjC.cpp | 10-Mar-2015 | 116.4K | |
CGObjCGNU.cpp | 10-Mar-2015 | 121.4K | |
CGObjCMac.cpp | 10-Mar-2015 | 277.2K | |
CGObjCRuntime.cpp | 16-Dec-2014 | 14.1K | |
CGObjCRuntime.h | 10-Mar-2015 | 12.9K | |
CGOpenCLRuntime.cpp | 16-Dec-2014 | 2.6K | |
CGOpenCLRuntime.h | 10-Mar-2015 | 1.4K | |
CGOpenMPRuntime.cpp | 10-Mar-2015 | 7K | |
CGOpenMPRuntime.h | 10-Mar-2015 | 6.7K | |
CGRecordLayout.h | 10-Mar-2015 | 7.9K | |
CGRecordLayoutBuilder.cpp | 10-Mar-2015 | 34.1K | |
CGStmt.cpp | 10-Mar-2015 | 77.9K | |
CGStmtOpenMP.cpp | 10-Mar-2015 | 3.8K | |
CGValue.h | 10-Mar-2015 | 15.4K | |
CGVTables.cpp | 10-Mar-2015 | 29.4K | |
CGVTables.h | 10-Mar-2015 | 4.5K | |
CGVTT.cpp | 16-Dec-2014 | 6.5K | |
CMakeLists.txt | 10-Mar-2015 | 1.1K | |
CodeGenABITypes.cpp | 10-Mar-2015 | 2.4K | |
CodeGenAction.cpp | 10-Mar-2015 | 27.3K | |
CodeGenFunction.cpp | 10-Mar-2015 | 61.1K | |
CodeGenFunction.h | 10-Mar-2015 | 114.1K | |
CodeGenModule.cpp | 10-Mar-2015 | 125.9K | |
CodeGenModule.h | 10-Mar-2015 | 41.3K | |
CodeGenPGO.cpp | 10-Mar-2015 | 36.2K | |
CodeGenPGO.h | 10-Mar-2015 | 9K | |
CodeGenTBAA.cpp | 16-Dec-2014 | 11.1K | |
CodeGenTBAA.h | 10-Mar-2015 | 5.4K | |
CodeGenTypes.cpp | 10-Mar-2015 | 26K | |
CodeGenTypes.h | 10-Mar-2015 | 11K | |
EHScopeStack.h | 10-Mar-2015 | 16.6K | |
ItaniumCXXABI.cpp | 10-Mar-2015 | 112.9K | |
Makefile | 16-Dec-2014 | 597 | |
MicrosoftCXXABI.cpp | 10-Mar-2015 | 116.6K | |
ModuleBuilder.cpp | 10-Mar-2015 | 6.2K | |
README.txt | 16-Dec-2014 | 1.8K | |
SanitizerBlacklist.cpp | 10-Mar-2015 | 1.7K | |
SanitizerBlacklist.h | 10-Mar-2015 | 1.3K | |
TargetInfo.cpp | 10-Mar-2015 | 238.5K | |
TargetInfo.h | 10-Mar-2015 | 8.6K |
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