• Home
Name
Date
Size
#Lines
LOC

..--

ABIInfo.hD03-May-20242.9 KiB9753

Android.mkD03-May-20242.1 KiB9882

BackendUtil.cppD03-May-202424 KiB669521

CGAtomic.cppD03-May-202465.7 KiB1,6391,254

CGBlocks.cppD03-May-202484.8 KiB2,3221,427

CGBlocks.hD03-May-20247.8 KiB257174

CGBuilder.hD03-May-20241.6 KiB5632

CGBuiltin.cppD03-May-2024274.3 KiB6,5185,731

CGCUDANV.cppD03-May-20244.3 KiB12687

CGCUDARuntime.cppD03-May-20241.8 KiB5631

CGCUDARuntime.hD03-May-20241.4 KiB5526

CGCXX.cppD03-May-202411.8 KiB317194

CGCXXABI.cppD03-May-202411.5 KiB312223

CGCXXABI.hD03-May-202423.1 KiB548250

CGCall.cppD03-May-2024134.2 KiB3,5122,509

CGCall.hD03-May-20245.3 KiB175102

CGClass.cppD03-May-202488.7 KiB2,4111,647

CGCleanup.cppD03-May-202441.9 KiB1,152697

CGCleanup.hD03-May-202416.1 KiB551346

CGDebugInfo.cppD03-May-2024130.4 KiB3,4202,495

CGDebugInfo.hD03-May-202421.4 KiB507276

CGDecl.cppD03-May-202465.7 KiB1,7931,189

CGDeclCXX.cppD03-May-202422.9 KiB595391

CGException.cppD03-May-202461 KiB1,7041,118

CGExpr.cppD03-May-2024136.2 KiB3,5642,614

CGExprAgg.cppD03-May-202456 KiB1,513966

CGExprCXX.cppD03-May-202470.6 KiB1,8421,223

CGExprComplex.cppD03-May-202441.7 KiB1,100815

CGExprConstant.cppD03-May-202451 KiB1,4351,035

CGExprScalar.cppD03-May-2024133.5 KiB3,5642,555

CGLoopInfo.cppD03-May-20243.5 KiB11179

CGLoopInfo.hD03-May-20244.3 KiB13761

CGObjC.cppD03-May-2024116 KiB3,0632,016

CGObjCGNU.cppD03-May-2024121.9 KiB2,8602,079

CGObjCMac.cppD03-May-2024276.7 KiB7,0554,587

CGObjCRuntime.cppD03-May-202414.1 KiB384241

CGObjCRuntime.hD03-May-202412.9 KiB301172

CGOpenCLRuntime.cppD03-May-20242.6 KiB6847

CGOpenCLRuntime.hD03-May-20241.4 KiB5323

CGOpenMPRuntime.cppD03-May-202480.7 KiB1,8971,452

CGOpenMPRuntime.hD03-May-202426.7 KiB583189

CGRecordLayout.hD03-May-20247.9 KiB22193

CGRecordLayoutBuilder.cppD03-May-202435.7 KiB845584

CGStmt.cppD03-May-202480.8 KiB2,2321,464

CGStmtOpenMP.cppD03-May-202468.9 KiB1,6951,270

CGVTT.cppD03-May-20246.7 KiB181124

CGVTables.cppD03-May-202434.9 KiB907614

CGVTables.hD03-May-20244.5 KiB12457

CGValue.hD03-May-202415.5 KiB506318

CMakeLists.txtD03-May-20241.5 KiB8580

CodeGenABITypes.cppD03-May-20242.5 KiB7346

CodeGenAction.cppD03-May-202428.8 KiB760545

CodeGenFunction.cppD03-May-202464.6 KiB1,7541,170

CodeGenFunction.hD03-May-2024125.2 KiB2,9951,664

CodeGenModule.cppD03-May-2024135.8 KiB3,6762,570

CodeGenModule.hD03-May-202444.4 KiB1,234657

CodeGenPGO.cppD03-May-202431.2 KiB890645

CodeGenPGO.hD03-May-20248.7 KiB228125

CodeGenTBAA.cppD03-May-202411.1 KiB322212

CodeGenTBAA.hD03-May-20245.4 KiB16189

CodeGenTypes.cppD03-May-202426.5 KiB739476

CodeGenTypes.hD03-May-202412.5 KiB329193

CoverageMappingGen.cppD03-May-202436.2 KiB1,029737

CoverageMappingGen.hD03-May-20243.8 KiB11564

EHScopeStack.hD03-May-202414 KiB406182

ItaniumCXXABI.cppD03-May-2024138.6 KiB3,6402,232

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-2024150.6 KiB3,7302,653

ModuleBuilder.cppD03-May-20248 KiB246169

README.txtD03-May-20241.8 KiB4835

SanitizerMetadata.cppD03-May-20243.7 KiB9366

SanitizerMetadata.hD03-May-20241.6 KiB5433

TargetInfo.cppD03-May-2024252.7 KiB7,1134,664

TargetInfo.hD03-May-20249.3 KiB23281

README.txt

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