• Home
Name Date Size #Lines LOC

..--

ABIInfo.hD03-May-20245 KiB15285

Address.hD03-May-20243.3 KiB11872

BackendUtil.cppD03-May-202463.8 KiB1,6041,284

CGAtomic.cppD03-May-202486.6 KiB2,1221,669

CGBlocks.cppD03-May-2024111.1 KiB2,9561,979

CGBlocks.hD03-May-20248.9 KiB295201

CGBuilder.hD03-May-202413.8 KiB324232

CGBuiltin.cppD03-May-2024715.6 KiB17,34314,908

CGCUDANV.cppD03-May-202435.2 KiB849598

CGCUDARuntime.cppD03-May-20241.5 KiB4624

CGCUDARuntime.hD03-May-20243.4 KiB10763

CGCXX.cppD03-May-202411.8 KiB308181

CGCXXABI.cppD03-May-202411.6 KiB313232

CGCXXABI.hD03-May-202427.6 KiB653318

CGCall.cppD03-May-2024200.7 KiB5,2063,660

CGCall.hD03-May-202411.6 KiB387277

CGClass.cppD03-May-2024113.9 KiB2,9762,058

CGCleanup.cppD03-May-202447 KiB1,279795

CGCleanup.hD03-May-202419.3 KiB636406

CGCoroutine.cppD03-May-202427.8 KiB759492

CGDebugInfo.cppD03-May-2024192.7 KiB5,0363,759

CGDebugInfo.hD03-May-202434.8 KiB814416

CGDecl.cppD03-May-2024100.3 KiB2,6091,859

CGDeclCXX.cppD03-May-202432.9 KiB828539

CGException.cppD03-May-202480.6 KiB2,1841,446

CGExpr.cppD03-May-2024213.5 KiB5,4244,002

CGExprAgg.cppD03-May-202480.8 KiB2,1691,499

CGExprCXX.cppD03-May-202490.9 KiB2,3181,560

CGExprComplex.cppD03-May-202445.1 KiB1,189887

CGExprConstant.cppD03-May-202486 KiB2,3391,697

CGExprScalar.cppD03-May-2024193.9 KiB4,9643,512

CGGPUBuiltin.cppD03-May-20246.2 KiB15786

CGLoopInfo.cppD03-May-202429 KiB807645

CGLoopInfo.hD03-May-202410.7 KiB297137

CGNonTrivialStruct.cppD03-May-202441.4 KiB1,004797

CGObjC.cppD03-May-2024149 KiB3,9662,657

CGObjCGNU.cppD03-May-2024168.3 KiB4,1362,981

CGObjCMac.cppD03-May-2024304.5 KiB7,9285,117

CGObjCRuntime.cppD03-May-202415.1 KiB403268

CGObjCRuntime.hD03-May-202415.5 KiB355198

CGOpenCLRuntime.cppD03-May-20247.1 KiB187139

CGOpenCLRuntime.hD03-May-20243.4 KiB10449

CGOpenMPRuntime.cppD03-May-2024533.7 KiB12,71710,088

CGOpenMPRuntime.hD03-May-2024114.3 KiB2,495974

CGOpenMPRuntimeAMDGCN.cppD03-May-20242.2 KiB6242

CGOpenMPRuntimeAMDGCN.hD03-May-20241.4 KiB4418

CGOpenMPRuntimeGPU.cppD03-May-2024198.3 KiB4,8723,743

CGOpenMPRuntimeGPU.hD03-May-202423.1 KiB505195

CGOpenMPRuntimeNVPTX.cppD03-May-20242 KiB5738

CGOpenMPRuntimeNVPTX.hD03-May-20241.4 KiB4418

CGRecordLayout.hD03-May-20248.4 KiB23397

CGRecordLayoutBuilder.cppD03-May-202444 KiB1,050699

CGStmt.cppD03-May-202499.3 KiB2,6971,851

CGStmtOpenMP.cppD03-May-2024281.9 KiB6,7325,531

CGVTT.cppD03-May-20246.8 KiB179125

CGVTables.cppD03-May-202452.7 KiB1,334898

CGVTables.hD03-May-20246.4 KiB16279

CGValue.hD03-May-202421.2 KiB665436

CMakeLists.txtD03-May-20241.6 KiB10096

CodeGenABITypes.cppD03-May-20245 KiB13193

CodeGenAction.cppD03-May-202445 KiB1,180862

CodeGenFunction.cppD03-May-202499.2 KiB2,5921,792

CodeGenFunction.hD03-May-2024205.6 KiB4,8232,852

CodeGenModule.cppD03-May-2024236.5 KiB6,2714,457

CodeGenModule.hD03-May-202461.6 KiB1,587782

CodeGenPGO.cppD03-May-202436.9 KiB1,088805

CodeGenPGO.hD03-May-20244.4 KiB12072

CodeGenTBAA.cppD03-May-202416.9 KiB466310

CodeGenTBAA.hD03-May-20249.2 KiB258146

CodeGenTypeCache.hD03-May-20243.3 KiB12273

CodeGenTypes.cppD03-May-202432.9 KiB918645

CodeGenTypes.hD03-May-202413.4 KiB319160

ConstantEmitter.hD03-May-20246.6 KiB18387

ConstantInitBuilder.cppD03-May-202410.3 KiB300221

CoverageMappingGen.cppD03-May-202457.5 KiB1,5991,128

CoverageMappingGen.hD03-May-20245.2 KiB15989

EHScopeStack.hD03-May-202414.4 KiB419193

ItaniumCXXABI.cppD03-May-2024180.9 KiB4,7022,992

MacroPPCallbacks.cppD03-May-20246.4 KiB200146

MacroPPCallbacks.hD03-May-20244.5 KiB12351

MicrosoftCXXABI.cppD03-May-2024176.1 KiB4,3613,106

ModuleBuilder.cppD03-May-202411.8 KiB347244

ObjectFilePCHContainerOperations.cppD03-May-202412.9 KiB365280

PatternInit.cppD03-May-20244.1 KiB8452

PatternInit.hD03-May-2024722 2813

README.txtD03-May-20241.8 KiB4835

SanitizerMetadata.cppD03-May-20244.2 KiB10678

SanitizerMetadata.hD03-May-20241.6 KiB5333

SwiftCallingConv.cppD03-May-202430.4 KiB883578

TargetInfo.cppD03-May-2024404.4 KiB11,1277,528

TargetInfo.hD03-May-202415.5 KiB355144

VarBypassDetector.cppD03-May-20245.1 KiB168121

VarBypassDetector.hD03-May-20242.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