Home | History | Annotate | only in /external/clang/lib/CodeGen
Up to higher level directory
NameDateSize
ABIInfo.h10-Oct-20125.7K
Android.mk10-Oct-20121.4K
BackendUtil.cpp10-Oct-201215.4K
CGBlocks.cpp10-Oct-201272.3K
CGBlocks.h10-Oct-20126.6K
CGBuilder.h10-Oct-2012717
CGBuiltin.cpp10-Oct-2012167.8K
CGCall.cpp10-Oct-201282.1K
CGCall.h10-Oct-20129.8K
CGClass.cpp10-Oct-201267.1K
CGCleanup.cpp10-Oct-201240K
CGCleanup.h10-Oct-201215.7K
CGCUDANV.cpp10-Oct-20124.3K
CGCUDARuntime.cpp10-Oct-20121.8K
CGCUDARuntime.h10-Oct-20121.4K
CGCXX.cpp10-Oct-201214.6K
CGCXXABI.cpp10-Oct-20127.7K
CGCXXABI.h10-Oct-201210.4K
CGDebugInfo.cpp10-Oct-2012100K
CGDebugInfo.h10-Oct-201213.2K
CGDecl.cpp10-Oct-201257K
CGDeclCXX.cpp10-Oct-201217.1K
CGException.cpp10-Oct-201257.4K
CGExpr.cpp10-Oct-2012121.9K
CGExprAgg.cpp10-Oct-201251.6K
CGExprComplex.cpp10-Oct-201230.4K
CGExprConstant.cpp10-Oct-201252.9K
CGExprCXX.cpp10-Oct-201267.7K
CGExprScalar.cpp10-Oct-2012105.5K
CGObjC.cpp10-Oct-2012111.9K
CGObjCGNU.cpp10-Oct-2012112.9K
CGObjCMac.cpp10-Oct-2012248.3K
CGObjCRuntime.cpp10-Oct-201213.6K
CGObjCRuntime.h10-Oct-201212.1K
CGOpenCLRuntime.cpp10-Oct-2012981
CGOpenCLRuntime.h10-Oct-20121.3K
CGRecordLayout.h10-Oct-201210K
CGRecordLayoutBuilder.cpp10-Oct-201240K
CGRTTI.cpp10-Oct-201234.6K
CGStmt.cpp10-Oct-201260.8K
CGValue.h10-Oct-201213.8K
CGVTables.cpp10-Oct-201226.4K
CGVTables.h10-Oct-20125.6K
CGVTT.cpp10-Oct-20126.9K
CMakeLists.txt10-Oct-2012982
CodeGenAction.cpp10-Oct-201215.2K
CodeGenFunction.cpp10-Oct-201240.6K
CodeGenFunction.h10-Oct-2012108.4K
CodeGenModule.cpp10-Oct-201297.8K
CodeGenModule.h10-Oct-201236.2K
CodeGenTBAA.cpp10-Oct-20125.8K
CodeGenTBAA.h10-Oct-20122.2K
CodeGenTypes.cpp10-Oct-201224.2K
CodeGenTypes.h10-Oct-201210.2K
ItaniumCXXABI.cpp10-Oct-201246.8K
Makefile10-Oct-2012597
MicrosoftCXXABI.cpp10-Oct-20123K
ModuleBuilder.cpp10-Oct-20124.3K
README.txt10-Oct-20121.8K
TargetInfo.cpp10-Oct-2012131.7K
TargetInfo.h10-Oct-20127K

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