• Home
Name Date Size #Lines LOC

..--

ABIInfo.hD03-May-20247.2 KiB221142

Android.mkD03-May-20241.5 KiB7263

BackendUtil.cppD03-May-202420.8 KiB589453

CGAtomic.cppD03-May-202434.6 KiB943689

CGBlocks.cppD03-May-202483.7 KiB2,3031,417

CGBlocks.hD03-May-20247.8 KiB257174

CGBuilder.hD03-May-2024712 2913

CGBuiltin.cppD03-May-2024113.8 KiB2,8232,360

CGCUDANV.cppD03-May-20244.3 KiB12687

CGCUDARuntime.cppD03-May-20241.8 KiB5631

CGCUDARuntime.hD03-May-20241.4 KiB5526

CGCXX.cppD03-May-202414.8 KiB395249

CGCXXABI.cppD03-May-20249.8 KiB260189

CGCXXABI.hD03-May-202413.6 KiB338149

CGCall.cppD03-May-202493.2 KiB2,4641,702

CGCall.hD03-May-20249.7 KiB304198

CGClass.cppD03-May-202482.7 KiB2,2651,560

CGCleanup.cppD03-May-202440.4 KiB1,114670

CGCleanup.hD03-May-202415.7 KiB540339

CGDebugInfo.cppD03-May-2024114.9 KiB2,9802,178

CGDebugInfo.hD03-May-202415.4 KiB370200

CGDecl.cppD03-May-202459.7 KiB1,6381,091

CGDeclCXX.cppD03-May-202416.9 KiB464319

CGException.cppD03-May-202460.7 KiB1,682989

CGExpr.cppD03-May-2024124.5 KiB3,2862,401

CGExprAgg.cppD03-May-202460.1 KiB1,5961,031

CGExprCXX.cppD03-May-202472.8 KiB1,9371,264

CGExprComplex.cppD03-May-202430.1 KiB845618

CGExprConstant.cppD03-May-202453.7 KiB1,5171,090

CGExprScalar.cppD03-May-2024122.5 KiB3,2792,342

CGObjC.cppD03-May-2024113.9 KiB3,0251,994

CGObjCGNU.cppD03-May-2024121.7 KiB2,8722,092

CGObjCMac.cppD03-May-2024276.8 KiB7,0874,643

CGObjCRuntime.cppD03-May-202414.1 KiB383240

CGObjCRuntime.hD03-May-202412.8 KiB300171

CGOpenCLRuntime.cppD03-May-20242.5 KiB6544

CGOpenCLRuntime.hD03-May-20241.4 KiB5323

CGRTTI.cppD03-May-202434.9 KiB1,024579

CGRecordLayout.hD03-May-20247.8 KiB21991

CGRecordLayoutBuilder.cppD03-May-202439.3 KiB1,146739

CGStmt.cppD03-May-202461.7 KiB1,7131,056

CGVTT.cppD03-May-20246.9 KiB193129

CGVTables.cppD03-May-202433.9 KiB913591

CGVTables.hD03-May-20245.4 KiB13860

CGValue.hD03-May-202415.4 KiB498308

CMakeLists.txtD03-May-20241.1 KiB7066

CodeGenAction.cppD03-May-202415.2 KiB451316

CodeGenFunction.cppD03-May-202447.6 KiB1,331872

CodeGenFunction.hD03-May-2024116.1 KiB2,8781,573

CodeGenModule.cppD03-May-2024109.8 KiB2,9802,023

CodeGenModule.hD03-May-202438.6 KiB1,056530

CodeGenTBAA.cppD03-May-20248.1 KiB228134

CodeGenTBAA.hD03-May-20242.9 KiB9847

CodeGenTypes.cppD03-May-202425.9 KiB725469

CodeGenTypes.hD03-May-202410.7 KiB265135

ItaniumCXXABI.cppD03-May-202450 KiB1,246767

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-202414.2 KiB358236

ModuleBuilder.cppD03-May-20244.5 KiB13293

README.txtD03-May-20241.8 KiB4835

TargetInfo.cppD03-May-2024177.6 KiB4,9343,083

TargetInfo.hD03-May-20247.1 KiB17457

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