|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| ABIInfo.h | D | 03-May-2024 | 2.3 KiB | 80 | 42 |
| Android.mk | D | 03-May-2024 | 1.7 KiB | 80 | 71 |
| BackendUtil.cpp | D | 03-May-2024 | 21.7 KiB | 613 | 474 |
| CGAtomic.cpp | D | 03-May-2024 | 43.8 KiB | 1,150 | 852 |
| CGBlocks.cpp | D | 03-May-2024 | 83.3 KiB | 2,289 | 1,400 |
| CGBlocks.h | D | 03-May-2024 | 7.8 KiB | 257 | 174 |
| CGBuilder.h | D | 03-May-2024 | 1.6 KiB | 56 | 32 |
| CGBuiltin.cpp | D | 03-May-2024 | 254.5 KiB | 6,012 | 5,252 |
| CGCUDANV.cpp | D | 03-May-2024 | 4.3 KiB | 126 | 87 |
| CGCUDARuntime.cpp | D | 03-May-2024 | 1.9 KiB | 57 | 32 |
| CGCUDARuntime.h | D | 03-May-2024 | 1.4 KiB | 55 | 26 |
| CGCXX.cpp | D | 03-May-2024 | 14.2 KiB | 370 | 230 |
| CGCXXABI.cpp | D | 03-May-2024 | 12 KiB | 328 | 236 |
| CGCXXABI.h | D | 03-May-2024 | 22.9 KiB | 535 | 232 |
| CGCall.cpp | D | 03-May-2024 | 116.9 KiB | 3,068 | 2,125 |
| CGCall.h | D | 03-May-2024 | 5.2 KiB | 175 | 102 |
| CGClass.cpp | D | 03-May-2024 | 81 KiB | 2,199 | 1,502 |
| CGCleanup.cpp | D | 03-May-2024 | 41.7 KiB | 1,147 | 693 |
| CGCleanup.h | D | 03-May-2024 | 16.1 KiB | 551 | 347 |
| CGDebugInfo.cpp | D | 03-May-2024 | 128.4 KiB | 3,329 | 2,440 |
| CGDebugInfo.h | D | 03-May-2024 | 19.6 KiB | 470 | 255 |
| CGDecl.cpp | D | 03-May-2024 | 64.3 KiB | 1,752 | 1,168 |
| CGDeclCXX.cpp | D | 03-May-2024 | 20.7 KiB | 546 | 373 |
| CGException.cpp | D | 03-May-2024 | 58.4 KiB | 1,639 | 996 |
| CGExpr.cpp | D | 03-May-2024 | 130 KiB | 3,432 | 2,493 |
| CGExprAgg.cpp | D | 03-May-2024 | 55.3 KiB | 1,496 | 953 |
| CGExprCXX.cpp | D | 03-May-2024 | 68.6 KiB | 1,787 | 1,174 |
| CGExprComplex.cpp | D | 03-May-2024 | 32.9 KiB | 903 | 678 |
| CGExprConstant.cpp | D | 03-May-2024 | 52.8 KiB | 1,483 | 1,066 |
| CGExprScalar.cpp | D | 03-May-2024 | 126.8 KiB | 3,398 | 2,420 |
| CGLoopInfo.cpp | D | 03-May-2024 | 3.6 KiB | 113 | 80 |
| CGLoopInfo.h | D | 03-May-2024 | 4.3 KiB | 137 | 61 |
| CGObjC.cpp | D | 03-May-2024 | 116.4 KiB | 3,073 | 2,026 |
| CGObjCGNU.cpp | D | 03-May-2024 | 121.4 KiB | 2,853 | 2,072 |
| CGObjCMac.cpp | D | 03-May-2024 | 277.2 KiB | 7,086 | 4,623 |
| CGObjCRuntime.cpp | D | 03-May-2024 | 14.1 KiB | 384 | 241 |
| CGObjCRuntime.h | D | 03-May-2024 | 12.9 KiB | 301 | 172 |
| CGOpenCLRuntime.cpp | D | 03-May-2024 | 2.6 KiB | 68 | 47 |
| CGOpenCLRuntime.h | D | 03-May-2024 | 1.4 KiB | 53 | 23 |
| CGOpenMPRuntime.cpp | D | 03-May-2024 | 7 KiB | 183 | 138 |
| CGOpenMPRuntime.h | D | 03-May-2024 | 6.7 KiB | 178 | 76 |
| CGRecordLayout.h | D | 03-May-2024 | 7.9 KiB | 221 | 93 |
| CGRecordLayoutBuilder.cpp | D | 03-May-2024 | 34.1 KiB | 814 | 565 |
| CGStmt.cpp | D | 03-May-2024 | 77.9 KiB | 2,162 | 1,400 |
| CGStmtOpenMP.cpp | D | 03-May-2024 | 3.8 KiB | 103 | 68 |
| CGVTT.cpp | D | 03-May-2024 | 6.5 KiB | 178 | 122 |
| CGVTables.cpp | D | 03-May-2024 | 29.4 KiB | 775 | 512 |
| CGVTables.h | D | 03-May-2024 | 4.5 KiB | 124 | 57 |
| CGValue.h | D | 03-May-2024 | 15.4 KiB | 504 | 316 |
| CMakeLists.txt | D | 03-May-2024 | 1.1 KiB | 73 | 69 |
| CodeGenABITypes.cpp | D | 03-May-2024 | 2.4 KiB | 70 | 43 |
| CodeGenAction.cpp | D | 03-May-2024 | 27.3 KiB | 718 | 510 |
| CodeGenFunction.cpp | D | 03-May-2024 | 61.1 KiB | 1,666 | 1,092 |
| CodeGenFunction.h | D | 03-May-2024 | 114.1 KiB | 2,751 | 1,556 |
| CodeGenModule.cpp | D | 03-May-2024 | 125.9 KiB | 3,404 | 2,364 |
| CodeGenModule.h | D | 03-May-2024 | 41.3 KiB | 1,158 | 618 |
| CodeGenPGO.cpp | D | 03-May-2024 | 36.2 KiB | 1,012 | 739 |
| CodeGenPGO.h | D | 03-May-2024 | 9 KiB | 237 | 131 |
| CodeGenTBAA.cpp | D | 03-May-2024 | 11.1 KiB | 322 | 212 |
| CodeGenTBAA.h | D | 03-May-2024 | 5.4 KiB | 161 | 89 |
| CodeGenTypes.cpp | D | 03-May-2024 | 26 KiB | 729 | 469 |
| CodeGenTypes.h | D | 03-May-2024 | 11 KiB | 270 | 137 |
| EHScopeStack.h | D | 03-May-2024 | 16.6 KiB | 490 | 257 |
| ItaniumCXXABI.cpp | D | 03-May-2024 | 112.9 KiB | 2,975 | 1,813 |
| Makefile | D | 03-May-2024 | 597 | 20 | 3 |
| MicrosoftCXXABI.cpp | D | 03-May-2024 | 116.6 KiB | 2,882 | 2,032 |
| ModuleBuilder.cpp | D | 03-May-2024 | 6.2 KiB | 195 | 133 |
| README.txt | D | 03-May-2024 | 1.8 KiB | 48 | 35 |
| SanitizerBlacklist.cpp | D | 03-May-2024 | 1.7 KiB | 49 | 28 |
| SanitizerBlacklist.h | D | 03-May-2024 | 1.3 KiB | 46 | 26 |
| TargetInfo.cpp | D | 03-May-2024 | 238.5 KiB | 6,675 | 4,326 |
| TargetInfo.h | D | 03-May-2024 | 8.6 KiB | 216 | 71 |
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