• Home
  • History
  • Annotate
  • only in /external/clang/lib/CodeGen/
NameDateSize

..12-Mar-20154 KiB

ABIInfo.h12-Mar-20152.3 KiB

Android.mk12-Mar-20151.7 KiB

BackendUtil.cpp12-Mar-201521.7 KiB

CGAtomic.cpp12-Mar-201543.8 KiB

CGBlocks.cpp12-Mar-201583.3 KiB

CGBlocks.h12-Mar-20157.8 KiB

CGBuilder.h12-Mar-20151.6 KiB

CGBuiltin.cpp12-Mar-2015254.5 KiB

CGCall.cpp12-Mar-2015116.9 KiB

CGCall.h12-Mar-20155.2 KiB

CGClass.cpp12-Mar-201581 KiB

CGCleanup.cpp12-Mar-201541.7 KiB

CGCleanup.h12-Mar-201516.1 KiB

CGCUDANV.cpp12-Mar-20154.3 KiB

CGCUDARuntime.cpp12-Mar-20151.9 KiB

CGCUDARuntime.h12-Mar-20151.4 KiB

CGCXX.cpp12-Mar-201514.2 KiB

CGCXXABI.cpp12-Mar-201512 KiB

CGCXXABI.h12-Mar-201522.9 KiB

CGDebugInfo.cpp12-Mar-2015128.4 KiB

CGDebugInfo.h12-Mar-201519.6 KiB

CGDecl.cpp12-Mar-201564.3 KiB

CGDeclCXX.cpp12-Mar-201520.7 KiB

CGException.cpp12-Mar-201558.4 KiB

CGExpr.cpp12-Mar-2015130 KiB

CGExprAgg.cpp12-Mar-201555.3 KiB

CGExprComplex.cpp12-Mar-201532.9 KiB

CGExprConstant.cpp12-Mar-201552.8 KiB

CGExprCXX.cpp12-Mar-201568.6 KiB

CGExprScalar.cpp12-Mar-2015126.8 KiB

CGLoopInfo.cpp12-Mar-20153.6 KiB

CGLoopInfo.h12-Mar-20154.3 KiB

CGObjC.cpp12-Mar-2015116.4 KiB

CGObjCGNU.cpp12-Mar-2015121.4 KiB

CGObjCMac.cpp12-Mar-2015277.2 KiB

CGObjCRuntime.cpp12-Mar-201514.1 KiB

CGObjCRuntime.h12-Mar-201512.9 KiB

CGOpenCLRuntime.cpp12-Mar-20152.6 KiB

CGOpenCLRuntime.h12-Mar-20151.4 KiB

CGOpenMPRuntime.cpp12-Mar-20157 KiB

CGOpenMPRuntime.h12-Mar-20156.7 KiB

CGRecordLayout.h12-Mar-20157.9 KiB

CGRecordLayoutBuilder.cpp12-Mar-201534.1 KiB

CGStmt.cpp12-Mar-201577.9 KiB

CGStmtOpenMP.cpp12-Mar-20153.8 KiB

CGValue.h12-Mar-201515.4 KiB

CGVTables.cpp12-Mar-201529.4 KiB

CGVTables.h12-Mar-20154.5 KiB

CGVTT.cpp12-Mar-20156.5 KiB

CMakeLists.txt12-Mar-20151.1 KiB

CodeGenABITypes.cpp12-Mar-20152.4 KiB

CodeGenAction.cpp12-Mar-201527.3 KiB

CodeGenFunction.cpp12-Mar-201561.1 KiB

CodeGenFunction.h12-Mar-2015114.1 KiB

CodeGenModule.cpp12-Mar-2015125.9 KiB

CodeGenModule.h12-Mar-201541.3 KiB

CodeGenPGO.cpp12-Mar-201536.2 KiB

CodeGenPGO.h12-Mar-20159 KiB

CodeGenTBAA.cpp12-Mar-201511.1 KiB

CodeGenTBAA.h12-Mar-20155.4 KiB

CodeGenTypes.cpp12-Mar-201526 KiB

CodeGenTypes.h12-Mar-201511 KiB

EHScopeStack.h12-Mar-201516.6 KiB

ItaniumCXXABI.cpp12-Mar-2015112.9 KiB

Makefile12-Mar-2015597

MicrosoftCXXABI.cpp12-Mar-2015116.6 KiB

ModuleBuilder.cpp12-Mar-20156.2 KiB

README.txt12-Mar-20151.8 KiB

SanitizerBlacklist.cpp12-Mar-20151.7 KiB

SanitizerBlacklist.h12-Mar-20151.3 KiB

TargetInfo.cpp12-Mar-2015238.5 KiB

TargetInfo.h12-Mar-20158.6 KiB

README.txt

1IRgen optimization opportunities.
2
3//===---------------------------------------------------------------------===//
4
5The common pattern of
6--
7short x; // or char, etc
8(x == 10)
9--
10generates an zext/sext of x which can easily be avoided.
11
12//===---------------------------------------------------------------------===//
13
14Bitfields accesses can be shifted to simplify masking and sign
15extension. For example, if the bitfield width is 8 and it is
16appropriately aligned then is is a lot shorter to just load the char
17directly.
18
19//===---------------------------------------------------------------------===//
20
21It may be worth avoiding creation of alloca's for formal arguments
22for the common situation where the argument is never written to or has
23its address taken. The idea would be to begin generating code by using
24the argument directly and if its address is taken or it is stored to
25then generate the alloca and patch up the existing code.
26
27In theory, the same optimization could be a win for block local
28variables as long as the declaration dominates all statements in the
29block.
30
31NOTE: The main case we care about this for is for -O0 -g compile time
32performance, and in that scenario we will need to emit the alloca
33anyway currently to emit proper debug info. So this is blocked by
34being able to emit debug information which refers to an LLVM
35temporary, not an alloca.
36
37//===---------------------------------------------------------------------===//
38
39We should try and avoid generating basic blocks which only contain
40jumps. At -O0, this penalizes us all the way from IRgen (malloc &
41instruction overhead), all the way down through code generation and
42assembly time.
43
44On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just
45direct branches!
46
47//===---------------------------------------------------------------------===//
48