Home | History | Annotate | only in /external/clang/lib/CodeGen
Up to higher level directory
NameDateSize
ABIInfo.h21-Aug-20184.9K
Address.h21-Aug-20183.3K
Android.bp21-Aug-2018106
BackendUtil.cpp21-Aug-201834.2K
CGAtomic.cpp21-Aug-201874.9K
CGBlocks.cpp21-Aug-201885.8K
CGBlocks.h21-Aug-20188.2K
CGBuilder.h21-Aug-201812.6K
CGBuiltin.cpp21-Aug-2018335.9K
CGCall.cpp21-Aug-2018158.3K
CGCall.h21-Aug-20185.5K
CGClass.cpp21-Aug-2018112.8K
CGCleanup.cpp21-Aug-201845.4K
CGCleanup.h21-Aug-201819.5K
CGCUDABuiltin.cpp21-Aug-20184.4K
CGCUDANV.cpp21-Aug-201815K
CGCUDARuntime.cpp21-Aug-20181.8K
CGCUDARuntime.h21-Aug-20182.1K
CGCXX.cpp21-Aug-201812.3K
CGCXXABI.cpp21-Aug-201812.1K
CGCXXABI.h21-Aug-201825.1K
CGDebugInfo.cpp21-Aug-2018143K
CGDebugInfo.h21-Aug-201825.1K
CGDecl.cpp21-Aug-201869.1K
CGDeclCXX.cpp21-Aug-201824.4K
CGException.cpp21-Aug-201868K
CGExpr.cpp21-Aug-2018165.3K
CGExprAgg.cpp21-Aug-201858.3K
CGExprComplex.cpp21-Aug-201841.9K
CGExprConstant.cpp21-Aug-201858.5K
CGExprCXX.cpp21-Aug-201875.9K
CGExprScalar.cpp21-Aug-2018133.4K
CGLoopInfo.cpp21-Aug-20189.7K
CGLoopInfo.h21-Aug-20185.5K
CGObjC.cpp21-Aug-2018124.9K
CGObjCGNU.cpp21-Aug-2018122.8K
CGObjCMac.cpp21-Aug-2018287.5K
CGObjCRuntime.cpp21-Aug-201814K
CGObjCRuntime.h21-Aug-201813.3K
CGOpenCLRuntime.cpp21-Aug-20182.7K
CGOpenCLRuntime.h21-Aug-20181.5K
CGOpenMPRuntime.cpp21-Aug-2018273.2K
CGOpenMPRuntime.h21-Aug-201848.5K
CGOpenMPRuntimeNVPTX.cpp21-Aug-201814.7K
CGOpenMPRuntimeNVPTX.h21-Aug-20186.7K
CGRecordLayout.h21-Aug-20187.9K
CGRecordLayoutBuilder.cpp21-Aug-201836.2K
CGStmt.cpp21-Aug-201882.4K
CGStmtOpenMP.cpp21-Aug-2018148.5K
CGValue.h21-Aug-201818.6K
CGVTables.cpp21-Aug-201837.3K
CGVTables.h21-Aug-20184.3K
CGVTT.cpp21-Aug-20186.7K
CMakeLists.txt21-Aug-20181.6K
CodeGenABITypes.cpp21-Aug-20182.4K
CodeGenAction.cpp21-Aug-201833.8K
CodeGenFunction.cpp21-Aug-201874.8K
CodeGenFunction.h21-Aug-2018147.3K
CodeGenModule.cpp21-Aug-2018162.4K
CodeGenModule.h21-Aug-201847.5K
CodeGenPGO.cpp21-Aug-201830.5K
CodeGenPGO.h21-Aug-20184.5K
CodeGenTBAA.cpp21-Aug-201811.2K
CodeGenTBAA.h21-Aug-20185.4K
CodeGenTypeCache.h21-Aug-20183K
CodeGenTypes.cpp21-Aug-201827.5K
CodeGenTypes.h21-Aug-201814.7K
CoverageMappingGen.cpp21-Aug-201839.7K
CoverageMappingGen.h21-Aug-20183.9K
EHScopeStack.h21-Aug-201814.5K
ItaniumCXXABI.cpp21-Aug-2018147.6K
MicrosoftCXXABI.cpp21-Aug-2018168.9K
ModuleBuilder.cpp21-Aug-201810.7K
ObjectFilePCHContainerOperations.cpp21-Aug-201812.1K
README.txt21-Aug-20181.8K
SanitizerMetadata.cpp21-Aug-20183.9K
SanitizerMetadata.h21-Aug-20181.6K
SwiftCallingConv.cpp21-Aug-201827.8K
TargetInfo.cpp21-Aug-2018290.4K
TargetInfo.h21-Aug-20189.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