• Home
Name
Date
Size
#Lines
LOC

..--

ABIInfo.hD03-May-20246.4 KiB198123

Android.mkD03-May-20241.4 KiB7061

BackendUtil.cppD03-May-202416.5 KiB492380

CGBlocks.cppD03-May-202472.6 KiB2,0521,241

CGBlocks.hD03-May-20246.6 KiB230157

CGBuilder.hD03-May-2024709 2913

CGBuiltin.cppD03-May-2024109.3 KiB2,7112,285

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-20249.5 KiB251182

CGCXXABI.hD03-May-202412 KiB302127

CGCall.cppD03-May-202484.8 KiB2,2591,557

CGCall.hD03-May-20249.8 KiB307199

CGClass.cppD03-May-202468.4 KiB1,8581,222

CGCleanup.cppD03-May-202440.1 KiB1,108664

CGCleanup.hD03-May-202415.7 KiB540339

CGDebugInfo.cppD03-May-2024103.8 KiB2,7442,006

CGDebugInfo.hD03-May-202413.3 KiB327173

CGDecl.cppD03-May-202458.1 KiB1,5921,045

CGDeclCXX.cppD03-May-202415.4 KiB417294

CGException.cppD03-May-202458.1 KiB1,610954

CGExpr.cppD03-May-2024128.9 KiB3,4262,521

CGExprAgg.cppD03-May-202454.1 KiB1,426907

CGExprCXX.cppD03-May-202469.2 KiB1,8521,209

CGExprComplex.cppD03-May-202430.4 KiB841609

CGExprConstant.cppD03-May-202453.1 KiB1,5021,077

CGExprScalar.cppD03-May-2024105.4 KiB2,8562,013

CGObjC.cppD03-May-2024113.3 KiB3,0041,982

CGObjCGNU.cppD03-May-2024115.1 KiB2,7301,987

CGObjCMac.cppD03-May-2024249.3 KiB6,3994,147

CGObjCRuntime.cppD03-May-202413.8 KiB378233

CGObjCRuntime.hD03-May-202412.1 KiB287162

CGOpenCLRuntime.cppD03-May-2024981 2910

CGOpenCLRuntime.hD03-May-20241.3 KiB4719

CGRTTI.cppD03-May-202434.5 KiB1,012570

CGRecordLayout.hD03-May-20249.8 KiB277122

CGRecordLayoutBuilder.cppD03-May-202440.1 KiB1,177755

CGStmt.cppD03-May-202460.4 KiB1,6741,026

CGVTT.cppD03-May-20246.9 KiB193129

CGVTables.cppD03-May-202426.5 KiB737497

CGVTables.hD03-May-20245.6 KiB14261

CGValue.hD03-May-202413.8 KiB453281

CMakeLists.txtD03-May-20241.1 KiB6965

CodeGenAction.cppD03-May-202415.2 KiB449314

CodeGenFunction.cppD03-May-202444.3 KiB1,236806

CodeGenFunction.hD03-May-2024109.5 KiB2,7251,485

CodeGenModule.cppD03-May-2024100.9 KiB2,7481,864

CodeGenModule.hD03-May-202436.9 KiB1,000494

CodeGenTBAA.cppD03-May-20246.1 KiB17090

CodeGenTBAA.hD03-May-20242.3 KiB8341

CodeGenTypes.cppD03-May-202424.2 KiB677426

CodeGenTypes.hD03-May-202410.5 KiB261131

ItaniumCXXABI.cppD03-May-202445.5 KiB1,164703

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-20246.5 KiB18091

ModuleBuilder.cppD03-May-20244.3 KiB12889

README.txtD03-May-20241.8 KiB4835

TargetInfo.cppD03-May-2024140.3 KiB3,9472,429

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