• Home
Name Date Size #Lines LOC

..--

ABIInfo.hD03-May-20242.3 KiB8042

Android.mkD03-May-20241.7 KiB8071

BackendUtil.cppD03-May-202421.7 KiB613474

CGAtomic.cppD03-May-202443.8 KiB1,150852

CGBlocks.cppD03-May-202483.3 KiB2,2891,400

CGBlocks.hD03-May-20247.8 KiB257174

CGBuilder.hD03-May-20241.6 KiB5632

CGBuiltin.cppD03-May-2024254.5 KiB6,0125,252

CGCUDANV.cppD03-May-20244.3 KiB12687

CGCUDARuntime.cppD03-May-20241.9 KiB5732

CGCUDARuntime.hD03-May-20241.4 KiB5526

CGCXX.cppD03-May-202414.2 KiB370230

CGCXXABI.cppD03-May-202412 KiB328236

CGCXXABI.hD03-May-202422.9 KiB535232

CGCall.cppD03-May-2024116.9 KiB3,0682,125

CGCall.hD03-May-20245.2 KiB175102

CGClass.cppD03-May-202481 KiB2,1991,502

CGCleanup.cppD03-May-202441.7 KiB1,147693

CGCleanup.hD03-May-202416.1 KiB551347

CGDebugInfo.cppD03-May-2024128.4 KiB3,3292,440

CGDebugInfo.hD03-May-202419.6 KiB470255

CGDecl.cppD03-May-202464.3 KiB1,7521,168

CGDeclCXX.cppD03-May-202420.7 KiB546373

CGException.cppD03-May-202458.4 KiB1,639996

CGExpr.cppD03-May-2024130 KiB3,4322,493

CGExprAgg.cppD03-May-202455.3 KiB1,496953

CGExprCXX.cppD03-May-202468.6 KiB1,7871,174

CGExprComplex.cppD03-May-202432.9 KiB903678

CGExprConstant.cppD03-May-202452.8 KiB1,4831,066

CGExprScalar.cppD03-May-2024126.8 KiB3,3982,420

CGLoopInfo.cppD03-May-20243.6 KiB11380

CGLoopInfo.hD03-May-20244.3 KiB13761

CGObjC.cppD03-May-2024116.4 KiB3,0732,026

CGObjCGNU.cppD03-May-2024121.4 KiB2,8532,072

CGObjCMac.cppD03-May-2024277.2 KiB7,0864,623

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-20247 KiB183138

CGOpenMPRuntime.hD03-May-20246.7 KiB17876

CGRecordLayout.hD03-May-20247.9 KiB22193

CGRecordLayoutBuilder.cppD03-May-202434.1 KiB814565

CGStmt.cppD03-May-202477.9 KiB2,1621,400

CGStmtOpenMP.cppD03-May-20243.8 KiB10368

CGVTT.cppD03-May-20246.5 KiB178122

CGVTables.cppD03-May-202429.4 KiB775512

CGVTables.hD03-May-20244.5 KiB12457

CGValue.hD03-May-202415.4 KiB504316

CMakeLists.txtD03-May-20241.1 KiB7369

CodeGenABITypes.cppD03-May-20242.4 KiB7043

CodeGenAction.cppD03-May-202427.3 KiB718510

CodeGenFunction.cppD03-May-202461.1 KiB1,6661,092

CodeGenFunction.hD03-May-2024114.1 KiB2,7511,556

CodeGenModule.cppD03-May-2024125.9 KiB3,4042,364

CodeGenModule.hD03-May-202441.3 KiB1,158618

CodeGenPGO.cppD03-May-202436.2 KiB1,012739

CodeGenPGO.hD03-May-20249 KiB237131

CodeGenTBAA.cppD03-May-202411.1 KiB322212

CodeGenTBAA.hD03-May-20245.4 KiB16189

CodeGenTypes.cppD03-May-202426 KiB729469

CodeGenTypes.hD03-May-202411 KiB270137

EHScopeStack.hD03-May-202416.6 KiB490257

ItaniumCXXABI.cppD03-May-2024112.9 KiB2,9751,813

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-2024116.6 KiB2,8822,032

ModuleBuilder.cppD03-May-20246.2 KiB195133

README.txtD03-May-20241.8 KiB4835

SanitizerBlacklist.cppD03-May-20241.7 KiB4928

SanitizerBlacklist.hD03-May-20241.3 KiB4626

TargetInfo.cppD03-May-2024238.5 KiB6,6754,326

TargetInfo.hD03-May-20248.6 KiB21671

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