|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| ABIInfo.h | D | 22-Nov-2023 | 3.8 KiB | 117 | 66 |
| Address.h | D | 22-Nov-2023 | 3.5 KiB | 127 | 78 |
| Android.mk | D | 22-Nov-2023 | 2.2 KiB | 101 | 85 |
| BackendUtil.cpp | D | 22-Nov-2023 | 26.1 KiB | 710 | 555 |
| CGAtomic.cpp | D | 22-Nov-2023 | 75.1 KiB | 1,874 | 1,433 |
| CGBlocks.cpp | D | 22-Nov-2023 | 84.9 KiB | 2,340 | 1,436 |
| CGBlocks.h | D | 22-Nov-2023 | 8.2 KiB | 278 | 191 |
| CGBuilder.h | D | 22-Nov-2023 | 12.6 KiB | 307 | 220 |
| CGBuiltin.cpp | D | 22-Nov-2023 | 301.5 KiB | 7,290 | 6,292 |
| CGCUDANV.cpp | D | 22-Nov-2023 | 12.9 KiB | 320 | 201 |
| CGCUDARuntime.cpp | D | 22-Nov-2023 | 1.8 KiB | 56 | 31 |
| CGCUDARuntime.h | D | 22-Nov-2023 | 1.8 KiB | 66 | 30 |
| CGCXX.cpp | D | 22-Nov-2023 | 12.3 KiB | 327 | 196 |
| CGCXXABI.cpp | D | 22-Nov-2023 | 12.1 KiB | 333 | 239 |
| CGCXXABI.h | D | 22-Nov-2023 | 24.2 KiB | 573 | 261 |
| CGCall.cpp | D | 22-Nov-2023 | 140.8 KiB | 3,688 | 2,629 |
| CGCall.h | D | 22-Nov-2023 | 5.5 KiB | 179 | 106 |
| CGClass.cpp | D | 22-Nov-2023 | 104.3 KiB | 2,793 | 1,886 |
| CGCleanup.cpp | D | 22-Nov-2023 | 44.4 KiB | 1,200 | 744 |
| CGCleanup.h | D | 22-Nov-2023 | 19.4 KiB | 643 | 410 |
| CGDebugInfo.cpp | D | 22-Nov-2023 | 134.9 KiB | 3,559 | 2,676 |
| CGDebugInfo.h | D | 22-Nov-2023 | 24.9 KiB | 588 | 302 |
| CGDecl.cpp | D | 22-Nov-2023 | 68.1 KiB | 1,864 | 1,237 |
| CGDeclCXX.cpp | D | 22-Nov-2023 | 23.4 KiB | 606 | 400 |
| CGException.cpp | D | 22-Nov-2023 | 68.3 KiB | 1,907 | 1,261 |
| CGExpr.cpp | D | 22-Nov-2023 | 155.6 KiB | 4,047 | 2,951 |
| CGExprAgg.cpp | D | 22-Nov-2023 | 56.9 KiB | 1,539 | 989 |
| CGExprCXX.cpp | D | 22-Nov-2023 | 75.6 KiB | 1,951 | 1,308 |
| CGExprComplex.cpp | D | 22-Nov-2023 | 41.9 KiB | 1,109 | 817 |
| CGExprConstant.cpp | D | 22-Nov-2023 | 57.5 KiB | 1,608 | 1,173 |
| CGExprScalar.cpp | D | 22-Nov-2023 | 133.8 KiB | 3,556 | 2,555 |
| CGLoopInfo.cpp | D | 22-Nov-2023 | 7.9 KiB | 249 | 201 |
| CGLoopInfo.h | D | 22-Nov-2023 | 5 KiB | 159 | 72 |
| CGObjC.cpp | D | 22-Nov-2023 | 117.1 KiB | 3,104 | 2,038 |
| CGObjCGNU.cpp | D | 22-Nov-2023 | 123.4 KiB | 2,897 | 2,112 |
| CGObjCMac.cpp | D | 22-Nov-2023 | 283.8 KiB | 7,250 | 4,652 |
| CGObjCRuntime.cpp | D | 22-Nov-2023 | 14.4 KiB | 392 | 248 |
| CGObjCRuntime.h | D | 22-Nov-2023 | 13.3 KiB | 313 | 174 |
| CGOpenCLRuntime.cpp | D | 22-Nov-2023 | 4.1 KiB | 102 | 81 |
| CGOpenCLRuntime.h | D | 22-Nov-2023 | 1.4 KiB | 53 | 23 |
| CGOpenMPRuntime.cpp | D | 22-Nov-2023 | 149.7 KiB | 3,555 | 2,802 |
| CGOpenMPRuntime.h | D | 22-Nov-2023 | 35.7 KiB | 772 | 250 |
| CGRecordLayout.h | D | 22-Nov-2023 | 7.9 KiB | 221 | 93 |
| CGRecordLayoutBuilder.cpp | D | 22-Nov-2023 | 36.2 KiB | 861 | 588 |
| CGStmt.cpp | D | 22-Nov-2023 | 80 KiB | 2,194 | 1,440 |
| CGStmtOpenMP.cpp | D | 22-Nov-2023 | 108.4 KiB | 2,634 | 2,072 |
| CGVTT.cpp | D | 22-Nov-2023 | 6.6 KiB | 179 | 123 |
| CGVTables.cpp | D | 22-Nov-2023 | 36.5 KiB | 959 | 649 |
| CGVTables.h | D | 22-Nov-2023 | 4.3 KiB | 120 | 56 |
| CGValue.h | D | 22-Nov-2023 | 18.6 KiB | 596 | 380 |
| CMakeLists.txt | D | 22-Nov-2023 | 1.5 KiB | 88 | 83 |
| CodeGenABITypes.cpp | D | 22-Nov-2023 | 2.7 KiB | 71 | 42 |
| CodeGenAction.cpp | D | 22-Nov-2023 | 32.9 KiB | 853 | 612 |
| CodeGenFunction.cpp | D | 22-Nov-2023 | 71.8 KiB | 1,940 | 1,303 |
| CodeGenFunction.h | D | 22-Nov-2023 | 137.9 KiB | 3,313 | 1,844 |
| CodeGenModule.cpp | D | 22-Nov-2023 | 149 KiB | 3,984 | 2,793 |
| CodeGenModule.h | D | 22-Nov-2023 | 46.2 KiB | 1,245 | 644 |
| CodeGenPGO.cpp | D | 22-Nov-2023 | 28.7 KiB | 842 | 612 |
| CodeGenPGO.h | D | 22-Nov-2023 | 4.1 KiB | 118 | 68 |
| CodeGenTBAA.cpp | D | 22-Nov-2023 | 11.1 KiB | 320 | 210 |
| CodeGenTBAA.h | D | 22-Nov-2023 | 5.4 KiB | 161 | 89 |
| CodeGenTypeCache.h | D | 22-Nov-2023 | 3 KiB | 109 | 66 |
| CodeGenTypes.cpp | D | 22-Nov-2023 | 27.3 KiB | 761 | 498 |
| CodeGenTypes.h | D | 22-Nov-2023 | 12.9 KiB | 336 | 197 |
| CoverageMappingGen.cpp | D | 22-Nov-2023 | 36.6 KiB | 1,045 | 747 |
| CoverageMappingGen.h | D | 22-Nov-2023 | 3.8 KiB | 115 | 64 |
| EHScopeStack.h | D | 22-Nov-2023 | 14.4 KiB | 421 | 194 |
| ItaniumCXXABI.cpp | D | 22-Nov-2023 | 146.1 KiB | 3,840 | 2,382 |
| Makefile | D | 22-Nov-2023 | 597 | 20 | 3 |
| MicrosoftCXXABI.cpp | D | 22-Nov-2023 | 168.5 KiB | 4,176 | 2,986 |
| ModuleBuilder.cpp | D | 22-Nov-2023 | 8.3 KiB | 250 | 173 |
| ObjectFilePCHContainerOperations.cpp | D | 22-Nov-2023 | 10.6 KiB | 301 | 232 |
| README.txt | D | 22-Nov-2023 | 1.8 KiB | 48 | 35 |
| SanitizerMetadata.cpp | D | 22-Nov-2023 | 3.9 KiB | 96 | 69 |
| SanitizerMetadata.h | D | 22-Nov-2023 | 1.6 KiB | 54 | 33 |
| TargetInfo.cpp | D | 22-Nov-2023 | 272.3 KiB | 7,610 | 4,937 |
| TargetInfo.h | D | 22-Nov-2023 | 9.1 KiB | 225 | 78 |
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