• Home
Name Date Size #Lines LOC

..--

ABIInfo.hD03-May-20245.7 KiB182108

Android.mkD03-May-20241.4 KiB6960

BackendUtil.cppD03-May-202415.4 KiB461354

CGBlocks.cppD03-May-202472.3 KiB2,0451,235

CGBlocks.hD03-May-20246.6 KiB230157

CGBuilder.hD03-May-2024717 2913

CGBuiltin.cppD03-May-2024167.8 KiB4,5253,456

CGCUDANV.cppD03-May-20244.3 KiB12787

CGCUDARuntime.cppD03-May-20241.8 KiB5631

CGCUDARuntime.hD03-May-20241.4 KiB5526

CGCXX.cppD03-May-202414.6 KiB393247

CGCXXABI.cppD03-May-20247.7 KiB200146

CGCXXABI.hD03-May-202410.4 KiB263115

CGCall.cppD03-May-202482.1 KiB2,2021,517

CGCall.hD03-May-20249.8 KiB307199

CGClass.cppD03-May-202467.1 KiB1,8421,223

CGCleanup.cppD03-May-202440 KiB1,104662

CGCleanup.hD03-May-202415.7 KiB540339

CGDebugInfo.cppD03-May-2024100 KiB2,6691,944

CGDebugInfo.hD03-May-202413.2 KiB323169

CGDecl.cppD03-May-202457 KiB1,5651,021

CGDeclCXX.cppD03-May-202417.1 KiB465324

CGException.cppD03-May-202457.4 KiB1,596946

CGExpr.cppD03-May-2024121.9 KiB3,2572,388

CGExprAgg.cppD03-May-202451.6 KiB1,344866

CGExprCXX.cppD03-May-202467.7 KiB1,8341,207

CGExprComplex.cppD03-May-202430.4 KiB840608

CGExprConstant.cppD03-May-202452.9 KiB1,4971,073

CGExprScalar.cppD03-May-2024105.5 KiB2,8582,026

CGObjC.cppD03-May-2024111.9 KiB2,9751,965

CGObjCGNU.cppD03-May-2024112.9 KiB2,6721,939

CGObjCMac.cppD03-May-2024248.3 KiB6,3744,126

CGObjCRuntime.cppD03-May-202413.6 KiB375230

CGObjCRuntime.hD03-May-202412.1 KiB287162

CGOpenCLRuntime.cppD03-May-2024981 2910

CGOpenCLRuntime.hD03-May-20241.3 KiB4719

CGRTTI.cppD03-May-202434.6 KiB1,016571

CGRecordLayout.hD03-May-202410 KiB282122

CGRecordLayoutBuilder.cppD03-May-202440 KiB1,171752

CGStmt.cppD03-May-202460.8 KiB1,6841,032

CGVTT.cppD03-May-20246.9 KiB193129

CGVTables.cppD03-May-202426.4 KiB734495

CGVTables.hD03-May-20245.6 KiB14261

CGValue.hD03-May-202413.8 KiB452280

CMakeLists.txtD03-May-2024982 5753

CodeGenAction.cppD03-May-202415.2 KiB449314

CodeGenFunction.cppD03-May-202440.6 KiB1,150743

CodeGenFunction.hD03-May-2024108.4 KiB2,7031,482

CodeGenModule.cppD03-May-202497.8 KiB2,6681,799

CodeGenModule.hD03-May-202436.2 KiB987490

CodeGenTBAA.cppD03-May-20245.8 KiB16486

CodeGenTBAA.hD03-May-20242.2 KiB8139

CodeGenTypes.cppD03-May-202424.2 KiB677426

CodeGenTypes.hD03-May-202410.2 KiB255128

ItaniumCXXABI.cppD03-May-202446.8 KiB1,203736

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-20243 KiB9640

ModuleBuilder.cppD03-May-20244.3 KiB12889

README.txtD03-May-20241.8 KiB4835

TargetInfo.cppD03-May-2024131.7 KiB3,6992,258

TargetInfo.hD03-May-20247 KiB17157

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