Name Date Size #Lines LOC

..--

ABIInfo.hH A D15-Oct-20152.9 KiB9753

BackendUtil.cppH A D15-Oct-201523.7 KiB661514

CGAtomic.cppH A D15-Oct-201548.5 KiB1,250924

CGBlocks.cppH A D15-Oct-201584.4 KiB2,3111,415

CGBlocks.hH A D15-Oct-20157.8 KiB257174

CGBuilder.hH A D15-Oct-20151.6 KiB5632

CGBuiltin.cppH A D15-Oct-2015269.5 KiB6,4035,611

CGCUDANV.cppH A D15-Oct-20154.3 KiB12687

CGCUDARuntime.cppH A D15-Oct-20151.8 KiB5631

CGCUDARuntime.hH A D15-Oct-20151.4 KiB5526

CGCXX.cppH A D15-Oct-201511.8 KiB317194

CGCXXABI.cppH A D15-Oct-201511.2 KiB305218

CGCXXABI.hH A D15-Oct-201522.6 KiB537241

CGCall.cppH A D15-Oct-2015131.6 KiB3,4532,459

CGCall.hH A D15-Oct-20155.3 KiB175102

CGClass.cppH A D15-Oct-201584.1 KiB2,2771,559

CGCleanup.cppH A D15-Oct-201541.6 KiB1,145691

CGCleanup.hH A D15-Oct-201516.2 KiB553348

CGDebugInfo.cppH A D15-Oct-2015130.7 KiB3,4082,492

CGDebugInfo.hH A D15-Oct-201520.7 KiB486267

CGDecl.cppH A D15-Oct-201565.5 KiB1,7861,183

CGDeclCXX.cppH A D15-Oct-201521.9 KiB577390

CGException.cppH A D15-Oct-201559.2 KiB1,6511,009

CGExpr.cppH A D15-Oct-2015135.7 KiB3,5522,595

CGExprAgg.cppH A D15-Oct-201555.7 KiB1,506960

CGExprCXX.cppH A D15-Oct-201570.4 KiB1,8381,219

CGExprComplex.cppH A D15-Oct-201541.4 KiB1,096811

CGExprConstant.cppH A D15-Oct-201550.8 KiB1,4301,032

CGExprScalar.cppH A D15-Oct-2015130.9 KiB3,5102,515

CGLoopInfo.cppH A D15-Oct-20153.5 KiB11280

CGLoopInfo.hH A D15-Oct-20154.3 KiB13761

CGObjC.cppH A D15-Oct-2015116.1 KiB3,0672,020

CGObjCGNU.cppH A D15-Oct-2015121.4 KiB2,8522,071

CGObjCMac.cppH A D15-Oct-2015276.4 KiB7,0494,585

CGObjCRuntime.cppH A D15-Oct-201514.1 KiB384241

CGObjCRuntime.hH A D15-Oct-201512.9 KiB301172

CGOpenCLRuntime.cppH A D15-Oct-20152.6 KiB6847

CGOpenCLRuntime.hH A D15-Oct-20151.4 KiB5323

CGOpenMPRuntime.cppH A D15-Oct-201540.4 KiB923713

CGOpenMPRuntime.hH A D15-Oct-201518 KiB403149

CGRecordLayout.hH A D15-Oct-20157.9 KiB22193

CGRecordLayoutBuilder.cppH A D15-Oct-201535.7 KiB845584

CGStmt.cppH A D15-Oct-201580.4 KiB2,2251,459

CGStmtOpenMP.cppH A D15-Oct-201527 KiB706514

CGVTT.cppH A D15-Oct-20156.5 KiB178122

CGVTables.cppH A D15-Oct-201532.4 KiB843560

CGVTables.hH A D15-Oct-20154.5 KiB12457

CGValue.hH A D15-Oct-201515.4 KiB504316

CMakeLists.txtH A D15-Oct-20151.4 KiB8580

CodeGenABITypes.cppH A D15-Oct-20152.5 KiB7346

CodeGenAction.cppH A D15-Oct-201528.6 KiB756541

CodeGenFunction.cppH A D15-Oct-201564.3 KiB1,7381,152

CodeGenFunction.hH A D15-Oct-2015119.1 KiB2,8581,618

CodeGenModule.cppH A D15-Oct-2015133.2 KiB3,5942,504

CodeGenModule.hH A D15-Oct-201543.8 KiB1,221651

CodeGenPGO.cppH A D15-Oct-201531.9 KiB892647

CodeGenPGO.hH A D15-Oct-20158.8 KiB231128

CodeGenTBAA.cppH A D15-Oct-201511.1 KiB322212

CodeGenTBAA.hH A D15-Oct-20155.4 KiB16189

CodeGenTypes.cppH A D15-Oct-201526.5 KiB739476

CodeGenTypes.hH A D15-Oct-201512.3 KiB324188

CoverageMappingGen.cppH A D15-Oct-201542.6 KiB1,175824

CoverageMappingGen.hH A D15-Oct-20153.8 KiB11564

EHScopeStack.hH A D15-Oct-201516.7 KiB490257

ItaniumCXXABI.cppH A D15-Oct-2015122 KiB3,2091,987

MakefileH A D15-Nov-2013597 203

MicrosoftCXXABI.cppH A D15-Oct-2015125.4 KiB3,0912,186

ModuleBuilder.cppH A D15-Oct-20158.1 KiB246169

README.txtH A D15-Nov-20131.8 KiB4835

SanitizerMetadata.cppH A D15-Oct-20153.7 KiB9366

SanitizerMetadata.hH A D15-Oct-20151.6 KiB5433

TargetInfo.cppH A D15-Oct-2015256.8 KiB7,2064,722

TargetInfo.hH A D15-Oct-20159.3 KiB23281

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