Home | History | Annotate | only in /external/clang/lib/CodeGen
Up to higher level directory
NameDateSize
ABIInfo.h06-Dec-20174.9K
Address.h06-Dec-20173.3K
Android.bp06-Dec-2017106
BackendUtil.cpp06-Dec-201734.2K
CGAtomic.cpp06-Dec-201774.9K
CGBlocks.cpp06-Dec-201785.8K
CGBlocks.h06-Dec-20178.2K
CGBuilder.h06-Dec-201712.6K
CGBuiltin.cpp06-Dec-2017335.9K
CGCall.cpp06-Dec-2017158.3K
CGCall.h06-Dec-20175.5K
CGClass.cpp06-Dec-2017112.8K
CGCleanup.cpp06-Dec-201745.4K
CGCleanup.h06-Dec-201719.5K
CGCUDABuiltin.cpp06-Dec-20174.4K
CGCUDANV.cpp06-Dec-201715K
CGCUDARuntime.cpp06-Dec-20171.8K
CGCUDARuntime.h06-Dec-20172.1K
CGCXX.cpp06-Dec-201712.3K
CGCXXABI.cpp06-Dec-201712.1K
CGCXXABI.h06-Dec-201725.1K
CGDebugInfo.cpp06-Dec-2017143K
CGDebugInfo.h06-Dec-201725.1K
CGDecl.cpp06-Dec-201769.1K
CGDeclCXX.cpp06-Dec-201724.4K
CGException.cpp06-Dec-201768K
CGExpr.cpp06-Dec-2017165.3K
CGExprAgg.cpp06-Dec-201758.3K
CGExprComplex.cpp06-Dec-201741.9K
CGExprConstant.cpp06-Dec-201758.5K
CGExprCXX.cpp06-Dec-201775.9K
CGExprScalar.cpp06-Dec-2017133.4K
CGLoopInfo.cpp06-Dec-20179.7K
CGLoopInfo.h06-Dec-20175.5K
CGObjC.cpp06-Dec-2017124.9K
CGObjCGNU.cpp06-Dec-2017122.8K
CGObjCMac.cpp06-Dec-2017287.5K
CGObjCRuntime.cpp06-Dec-201714K
CGObjCRuntime.h06-Dec-201713.3K
CGOpenCLRuntime.cpp06-Dec-20172.7K
CGOpenCLRuntime.h06-Dec-20171.5K
CGOpenMPRuntime.cpp06-Dec-2017273.2K
CGOpenMPRuntime.h06-Dec-201748.5K
CGOpenMPRuntimeNVPTX.cpp06-Dec-201714.7K
CGOpenMPRuntimeNVPTX.h06-Dec-20176.7K
CGRecordLayout.h06-Dec-20177.9K
CGRecordLayoutBuilder.cpp06-Dec-201736.2K
CGStmt.cpp06-Dec-201782.4K
CGStmtOpenMP.cpp06-Dec-2017148.5K
CGValue.h06-Dec-201718.6K
CGVTables.cpp06-Dec-201737.3K
CGVTables.h06-Dec-20174.3K
CGVTT.cpp06-Dec-20176.7K
CMakeLists.txt06-Dec-20171.6K
CodeGenABITypes.cpp06-Dec-20172.4K
CodeGenAction.cpp06-Dec-201733.8K
CodeGenFunction.cpp06-Dec-201774.8K
CodeGenFunction.h06-Dec-2017147.3K
CodeGenModule.cpp06-Dec-2017162.4K
CodeGenModule.h06-Dec-201747.5K
CodeGenPGO.cpp06-Dec-201730.5K
CodeGenPGO.h06-Dec-20174.5K
CodeGenTBAA.cpp06-Dec-201711.2K
CodeGenTBAA.h06-Dec-20175.4K
CodeGenTypeCache.h06-Dec-20173K
CodeGenTypes.cpp06-Dec-201727.5K
CodeGenTypes.h06-Dec-201714.7K
CoverageMappingGen.cpp06-Dec-201739.7K
CoverageMappingGen.h06-Dec-20173.9K
EHScopeStack.h06-Dec-201714.5K
ItaniumCXXABI.cpp06-Dec-2017147.6K
MicrosoftCXXABI.cpp06-Dec-2017168.9K
ModuleBuilder.cpp06-Dec-201710.7K
ObjectFilePCHContainerOperations.cpp06-Dec-201712.1K
README.txt06-Dec-20171.8K
SanitizerMetadata.cpp06-Dec-20173.9K
SanitizerMetadata.h06-Dec-20171.6K
SwiftCallingConv.cpp06-Dec-201727.8K
TargetInfo.cpp06-Dec-2017290.4K
TargetInfo.h06-Dec-20179.2K

README.txt

      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