• Home
Name
Date
Size
#Lines
LOC

..--

ABIInfo.hD03-May-20245.4 KiB173102

Android.mkD03-May-20241.3 KiB6757

BackendUtil.cppD03-May-202413.2 KiB400302

CGBlocks.cppD03-May-202463.9 KiB1,8201,083

CGBlocks.hD03-May-20245.7 KiB201136

CGBuilder.hD03-May-2024717 2913

CGBuiltin.cppD03-May-202497.2 KiB2,4392,099

CGCXX.cppD03-May-202414.9 KiB398249

CGCXXABI.cppD03-May-20246.8 KiB175129

CGCXXABI.hD03-May-20249.7 KiB249111

CGCall.cppD03-May-202467 KiB1,8321,262

CGCall.hD03-May-20247 KiB229145

CGClass.cppD03-May-202461.4 KiB1,6891,114

CGCleanup.cppD03-May-202442 KiB1,173710

CGCleanup.hD03-May-202416.7 KiB561342

CGDebugInfo.cppD03-May-202489.4 KiB2,3701,736

CGDebugInfo.hD03-May-202412 KiB296158

CGDecl.cppD03-May-202453.9 KiB1,480958

CGDeclCXX.cppD03-May-202413.1 KiB368263

CGException.cppD03-May-202454.8 KiB1,509877

CGException.hD03-May-20241.7 KiB5728

CGExpr.cppD03-May-202491.1 KiB2,4311,759

CGExprAgg.cppD03-May-202443 KiB1,134721

CGExprCXX.cppD03-May-202461.3 KiB1,6891,109

CGExprComplex.cppD03-May-202430 KiB827595

CGExprConstant.cppD03-May-202446.8 KiB1,333944

CGExprScalar.cppD03-May-2024101.3 KiB2,7551,943

CGObjC.cppD03-May-202482.4 KiB2,1571,514

CGObjCGNU.cppD03-May-2024105.7 KiB2,4781,796

CGObjCMac.cppD03-May-2024239.1 KiB6,1383,959

CGObjCRuntime.cppD03-May-202411.3 KiB310190

CGObjCRuntime.hD03-May-202411 KiB262147

CGRTTI.cppD03-May-202434.5 KiB1,013568

CGRecordLayout.hD03-May-202410 KiB281122

CGRecordLayoutBuilder.cppD03-May-202438 KiB1,106700

CGStmt.cppD03-May-202458.8 KiB1,6441,008

CGTemporaries.cppD03-May-20241.7 KiB5031

CGVTT.cppD03-May-202418.1 KiB499293

CGVTables.cppD03-May-2024119 KiB3,3082,086

CGVTables.hD03-May-202411.2 KiB290137

CGValue.hD03-May-202412.7 KiB437279

CMakeLists.txtD03-May-2024924 5349

CodeGenAction.cppD03-May-202412.5 KiB369252

CodeGenFunction.cppD03-May-202435.5 KiB1,021645

CodeGenFunction.hD03-May-2024100.5 KiB2,5221,368

CodeGenModule.cppD03-May-202485.7 KiB2,3671,558

CodeGenModule.hD03-May-202430.6 KiB844416

CodeGenTBAA.cppD03-May-20246.5 KiB18297

CodeGenTBAA.hD03-May-20242.1 KiB7739

CodeGenTypes.cppD03-May-202423.6 KiB659416

CodeGenTypes.hD03-May-20249.2 KiB238125

ItaniumCXXABI.cppD03-May-202447.1 KiB1,223749

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-20242.7 KiB8933

ModuleBuilder.cppD03-May-20244.1 KiB12184

README.txtD03-May-20241.8 KiB4835

TargetInfo.cppD03-May-2024108.8 KiB3,0931,873

TargetInfo.hD03-May-20244.9 KiB13251

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