• Home
Name Date Size #Lines LOC

..--

ABIInfo.hD03-May-20247.2 KiB223144

Android.mkD03-May-20241.5 KiB7465

BackendUtil.cppD03-May-202420.8 KiB589454

CGAtomic.cppD03-May-202436.6 KiB996734

CGBlocks.cppD03-May-202484 KiB2,3061,410

CGBlocks.hD03-May-20247.8 KiB257174

CGBuilder.hD03-May-2024712 2913

CGBuiltin.cppD03-May-2024128.7 KiB3,1812,684

CGCUDANV.cppD03-May-20244.3 KiB12687

CGCUDARuntime.cppD03-May-20241.8 KiB5631

CGCUDARuntime.hD03-May-20241.4 KiB5526

CGCXX.cppD03-May-202413.2 KiB350221

CGCXXABI.cppD03-May-202411.2 KiB300222

CGCXXABI.hD03-May-202417.9 KiB428177

CGCall.cppD03-May-202499.6 KiB2,6291,804

CGCall.hD03-May-202410.7 KiB331214

CGClass.cppD03-May-202481.6 KiB2,2361,536

CGCleanup.cppD03-May-202441.6 KiB1,145691

CGCleanup.hD03-May-202415.7 KiB542343

CGDebugInfo.cppD03-May-2024124.5 KiB3,2292,366

CGDebugInfo.hD03-May-202418.1 KiB438230

CGDecl.cppD03-May-202463.7 KiB1,7411,160

CGDeclCXX.cppD03-May-202418.9 KiB513351

CGException.cppD03-May-202461.3 KiB1,7001,006

CGExpr.cppD03-May-2024123.1 KiB3,2652,381

CGExprAgg.cppD03-May-202454.9 KiB1,476940

CGExprCXX.cppD03-May-202473.2 KiB1,9501,267

CGExprComplex.cppD03-May-202432.4 KiB895670

CGExprConstant.cppD03-May-202453.6 KiB1,5021,079

CGExprScalar.cppD03-May-2024122.4 KiB3,2832,333

CGObjC.cppD03-May-2024115.7 KiB3,0702,022

CGObjCGNU.cppD03-May-2024122.9 KiB2,8972,112

CGObjCMac.cppD03-May-2024276.7 KiB7,0904,644

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-202433.4 KiB978566

CGRecordLayout.hD03-May-20247.8 KiB21991

CGRecordLayoutBuilder.cppD03-May-202438.5 KiB1,115716

CGStmt.cppD03-May-202467.5 KiB1,8631,159

CGVTT.cppD03-May-20246.4 KiB175119

CGVTables.cppD03-May-202434.6 KiB932600

CGVTables.hD03-May-20245.2 KiB13460

CGValue.hD03-May-202414.9 KiB489304

CMakeLists.txtD03-May-20241.1 KiB7268

CodeGenAction.cppD03-May-202415.7 KiB468329

CodeGenFunction.cppD03-May-202452.6 KiB1,465955

CodeGenFunction.hD03-May-2024108.1 KiB2,6361,464

CodeGenModule.cppD03-May-2024115.6 KiB3,1142,105

CodeGenModule.hD03-May-202441.1 KiB1,117549

CodeGenTBAA.cppD03-May-202411.2 KiB321208

CodeGenTBAA.hD03-May-20245.4 KiB16189

CodeGenTypes.cppD03-May-202426.2 KiB732473

CodeGenTypes.hD03-May-202410.8 KiB268135

EHScopeStack.hD03-May-202416.6 KiB490257

ItaniumCXXABI.cppD03-May-202458.5 KiB1,453895

MakefileD03-May-2024597 203

MicrosoftCXXABI.cppD03-May-202453.8 KiB1,321913

MicrosoftVBTables.cppD03-May-20248.9 KiB237158

MicrosoftVBTables.hD03-May-20245 KiB13044

ModuleBuilder.cppD03-May-20245 KiB151108

README.txtD03-May-20241.8 KiB4835

TargetInfo.cppD03-May-2024195.8 KiB5,4763,467

TargetInfo.hD03-May-20248.2 KiB19863

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