• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

ABIInfo.hD22-Nov-20233.8 KiB11766

Address.hD22-Nov-20233.5 KiB12778

Android.mkD22-Nov-20232.2 KiB10185

BackendUtil.cppD22-Nov-202326.1 KiB710555

CGAtomic.cppD22-Nov-202375.1 KiB1,8741,433

CGBlocks.cppD22-Nov-202384.9 KiB2,3401,436

CGBlocks.hD22-Nov-20238.2 KiB278191

CGBuilder.hD22-Nov-202312.6 KiB307220

CGBuiltin.cppD22-Nov-2023301.5 KiB7,2906,292

CGCUDANV.cppD22-Nov-202312.9 KiB320201

CGCUDARuntime.cppD22-Nov-20231.8 KiB5631

CGCUDARuntime.hD22-Nov-20231.8 KiB6630

CGCXX.cppD22-Nov-202312.3 KiB327196

CGCXXABI.cppD22-Nov-202312.1 KiB333239

CGCXXABI.hD22-Nov-202324.2 KiB573261

CGCall.cppD22-Nov-2023140.8 KiB3,6882,629

CGCall.hD22-Nov-20235.5 KiB179106

CGClass.cppD22-Nov-2023104.3 KiB2,7931,886

CGCleanup.cppD22-Nov-202344.4 KiB1,200744

CGCleanup.hD22-Nov-202319.4 KiB643410

CGDebugInfo.cppD22-Nov-2023134.9 KiB3,5592,676

CGDebugInfo.hD22-Nov-202324.9 KiB588302

CGDecl.cppD22-Nov-202368.1 KiB1,8641,237

CGDeclCXX.cppD22-Nov-202323.4 KiB606400

CGException.cppD22-Nov-202368.3 KiB1,9071,261

CGExpr.cppD22-Nov-2023155.6 KiB4,0472,951

CGExprAgg.cppD22-Nov-202356.9 KiB1,539989

CGExprCXX.cppD22-Nov-202375.6 KiB1,9511,308

CGExprComplex.cppD22-Nov-202341.9 KiB1,109817

CGExprConstant.cppD22-Nov-202357.5 KiB1,6081,173

CGExprScalar.cppD22-Nov-2023133.8 KiB3,5562,555

CGLoopInfo.cppD22-Nov-20237.9 KiB249201

CGLoopInfo.hD22-Nov-20235 KiB15972

CGObjC.cppD22-Nov-2023117.1 KiB3,1042,038

CGObjCGNU.cppD22-Nov-2023123.4 KiB2,8972,112

CGObjCMac.cppD22-Nov-2023283.8 KiB7,2504,652

CGObjCRuntime.cppD22-Nov-202314.4 KiB392248

CGObjCRuntime.hD22-Nov-202313.3 KiB313174

CGOpenCLRuntime.cppD22-Nov-20234.1 KiB10281

CGOpenCLRuntime.hD22-Nov-20231.4 KiB5323

CGOpenMPRuntime.cppD22-Nov-2023149.7 KiB3,5552,802

CGOpenMPRuntime.hD22-Nov-202335.7 KiB772250

CGRecordLayout.hD22-Nov-20237.9 KiB22193

CGRecordLayoutBuilder.cppD22-Nov-202336.2 KiB861588

CGStmt.cppD22-Nov-202380 KiB2,1941,440

CGStmtOpenMP.cppD22-Nov-2023108.4 KiB2,6342,072

CGVTT.cppD22-Nov-20236.6 KiB179123

CGVTables.cppD22-Nov-202336.5 KiB959649

CGVTables.hD22-Nov-20234.3 KiB12056

CGValue.hD22-Nov-202318.6 KiB596380

CMakeLists.txtD22-Nov-20231.5 KiB8883

CodeGenABITypes.cppD22-Nov-20232.7 KiB7142

CodeGenAction.cppD22-Nov-202332.9 KiB853612

CodeGenFunction.cppD22-Nov-202371.8 KiB1,9401,303

CodeGenFunction.hD22-Nov-2023137.9 KiB3,3131,844

CodeGenModule.cppD22-Nov-2023149 KiB3,9842,793

CodeGenModule.hD22-Nov-202346.2 KiB1,245644

CodeGenPGO.cppD22-Nov-202328.7 KiB842612

CodeGenPGO.hD22-Nov-20234.1 KiB11868

CodeGenTBAA.cppD22-Nov-202311.1 KiB320210

CodeGenTBAA.hD22-Nov-20235.4 KiB16189

CodeGenTypeCache.hD22-Nov-20233 KiB10966

CodeGenTypes.cppD22-Nov-202327.3 KiB761498

CodeGenTypes.hD22-Nov-202312.9 KiB336197

CoverageMappingGen.cppD22-Nov-202336.6 KiB1,045747

CoverageMappingGen.hD22-Nov-20233.8 KiB11564

EHScopeStack.hD22-Nov-202314.4 KiB421194

ItaniumCXXABI.cppD22-Nov-2023146.1 KiB3,8402,382

MakefileD22-Nov-2023597 203

MicrosoftCXXABI.cppD22-Nov-2023168.5 KiB4,1762,986

ModuleBuilder.cppD22-Nov-20238.3 KiB250173

ObjectFilePCHContainerOperations.cppD22-Nov-202310.6 KiB301232

README.txtD22-Nov-20231.8 KiB4835

SanitizerMetadata.cppD22-Nov-20233.9 KiB9669

SanitizerMetadata.hD22-Nov-20231.6 KiB5433

TargetInfo.cppD22-Nov-2023272.3 KiB7,6104,937

TargetInfo.hD22-Nov-20239.1 KiB22578

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