Name Date Size #Lines LOC

..08-May-2022-

ABIInfo.hH A D08-May-20225 KiB15285

Address.hH A D08-May-20223.3 KiB11872

BackendUtil.cppH A D08-May-202266.9 KiB1,6811,342

CGAtomic.cppH A D08-May-202287.1 KiB2,1301,671

CGBlocks.cppH A D08-May-2022111.1 KiB2,9571,980

CGBlocks.hH A D08-May-20228.9 KiB295201

CGBuilder.hH A D08-May-202214.6 KiB340242

CGBuiltin.cppH A D08-May-2022740.8 KiB17,99115,485

CGCUDANV.cppH A D08-May-202247.8 KiB1,147824

CGCUDARuntime.cppH A D08-May-20221.5 KiB4624

CGCUDARuntime.hH A D08-May-20223.6 KiB11869

CGCXX.cppH A D08-May-202211.8 KiB308181

CGCXXABI.cppH A D08-May-202211.6 KiB313232

CGCXXABI.hH A D08-May-202227.8 KiB660322

CGCall.cppH A D08-May-2022213.7 KiB5,5173,882

CGCall.hH A D08-May-202211.7 KiB389279

CGClass.cppH A D08-May-2022114 KiB2,9762,058

CGCleanup.cppH A D08-May-202250.5 KiB1,371864

CGCleanup.hH A D08-May-202219.3 KiB636406

CGCoroutine.cppH A D08-May-202228.4 KiB772503

CGDebugInfo.cppH A D08-May-2022198.4 KiB5,1703,862

CGDebugInfo.hH A D08-May-202235.3 KiB827424

CGDecl.cppH A D08-May-2022102.8 KiB2,6701,896

CGDeclCXX.cppH A D08-May-202234.6 KiB873572

CGException.cppH A D08-May-202284.5 KiB2,2791,517

CGExpr.cppH A D08-May-2022214.7 KiB5,4534,025

CGExprAgg.cppH A D08-May-202280.9 KiB2,1711,501

CGExprCXX.cppH A D08-May-202291.3 KiB2,3241,566

CGExprComplex.cppH A D08-May-202245.2 KiB1,190888

CGExprConstant.cppH A D08-May-202286.1 KiB2,3401,698

CGExprScalar.cppH A D08-May-2022201.1 KiB5,1203,623

CGGPUBuiltin.cppH A D08-May-20226.2 KiB15786

CGLoopInfo.cppH A D08-May-202230.6 KiB842674

CGLoopInfo.hH A D08-May-202210.9 KiB304141

CGNonTrivialStruct.cppH A D08-May-202241.4 KiB1,004797

CGObjC.cppH A D08-May-2022151.6 KiB4,0152,690

CGObjCGNU.cppH A D08-May-2022168.4 KiB4,1412,986

CGObjCMac.cppH A D08-May-2022305.7 KiB7,9525,141

CGObjCRuntime.cppH A D08-May-202215.1 KiB403268

CGObjCRuntime.hH A D08-May-202215.5 KiB355198

CGOpenCLRuntime.cppH A D08-May-20227.1 KiB187139

CGOpenCLRuntime.hH A D08-May-20223.4 KiB10449

CGOpenMPRuntime.cppH A D08-May-2022541.2 KiB12,89510,246

CGOpenMPRuntime.hH A D08-May-2022115.1 KiB2,514981

CGOpenMPRuntimeAMDGCN.cppH A D08-May-20222.2 KiB6141

CGOpenMPRuntimeAMDGCN.hH A D08-May-20221.4 KiB4418

CGOpenMPRuntimeGPU.cppH A D08-May-2022192.1 KiB4,7143,625

CGOpenMPRuntimeGPU.hH A D08-May-202223.1 KiB505195

CGOpenMPRuntimeNVPTX.cppH A D08-May-20222 KiB5738

CGOpenMPRuntimeNVPTX.hH A D08-May-20221.4 KiB4418

CGRecordLayout.hH A D08-May-20228.4 KiB23397

CGRecordLayoutBuilder.cppH A D08-May-202244.1 KiB1,055703

CGStmt.cppH A D08-May-2022102 KiB2,7571,902

CGStmtOpenMP.cppH A D08-May-2022299.7 KiB7,1665,884

CGVTT.cppH A D08-May-20226.8 KiB179125

CGVTables.cppH A D08-May-202252.3 KiB1,320886

CGVTables.hH A D08-May-20226.4 KiB16279

CGValue.hH A D08-May-202221.2 KiB665436

CMakeLists.txtH A D08-May-20221.6 KiB10096

CodeGenABITypes.cppH A D08-May-20225 KiB13193

CodeGenAction.cppH A D08-May-202243.3 KiB1,143830

CodeGenFunction.cppH A D08-May-2022102.2 KiB2,6811,826

CodeGenFunction.hH A D08-May-2022207.2 KiB4,8502,841

CodeGenModule.cppH A D08-May-2022242.7 KiB6,4194,555

CodeGenModule.hH A D08-May-202263.6 KiB1,635807

CodeGenPGO.cppH A D08-May-202238 KiB1,115824

CodeGenPGO.hH A D08-May-20224.5 KiB12473

CodeGenTBAA.cppH A D08-May-202216.9 KiB466310

CodeGenTBAA.hH A D08-May-20229.2 KiB258146

CodeGenTypeCache.hH A D08-May-20223.3 KiB12574

CodeGenTypes.cppH A D08-May-202233.4 KiB927654

CodeGenTypes.hH A D08-May-202213.4 KiB319160

ConstantEmitter.hH A D08-May-20226.6 KiB18387

ConstantInitBuilder.cppH A D08-May-202210.3 KiB300221

CoverageMappingGen.cppH A D08-May-202264.6 KiB1,7721,238

CoverageMappingGen.hH A D08-May-20225.4 KiB16592

EHScopeStack.hH A D08-May-202214.5 KiB427197

ItaniumCXXABI.cppH A D08-May-2022186.2 KiB4,8113,066

MacroPPCallbacks.cppH A D08-May-20226.4 KiB200146

MacroPPCallbacks.hH A D08-May-20224.5 KiB12351

MicrosoftCXXABI.cppH A D08-May-2022177.1 KiB4,3863,124

ModuleBuilder.cppH A D08-May-202211.8 KiB347244

ObjectFilePCHContainerOperations.cppH A D08-May-202212.9 KiB365280

PatternInit.cppH A D08-May-20224.1 KiB8452

PatternInit.hH A D08-May-2022722 2813

README.txtH A D08-May-20221.8 KiB4835

SanitizerMetadata.cppH A D08-May-20224.2 KiB10678

SanitizerMetadata.hH A D08-May-20221.6 KiB5333

SwiftCallingConv.cppH A D08-May-202230.4 KiB883578

TargetInfo.cppH A D08-May-2022411 KiB11,3007,652

TargetInfo.hH A D08-May-202215.9 KiB366151

VarBypassDetector.cppH A D08-May-20225.1 KiB168121

VarBypassDetector.hH A D08-May-20222.3 KiB7131

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