Helena Kotas a929b4a84a Code review feedback 4 years ago
..
ABIInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
BackendUtil.cpp 6cd93dfe40 Added option to not generate nops (#3419) 4 years ago
CGAtomic.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGBlocks.cpp a5843199c5 Enable warnings as errors for clang builds (#3012) 5 years ago
CGBlocks.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGBuilder.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGBuiltin.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCUDANV.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCUDARuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCUDARuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCXXABI.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGCall.cpp c3ffca66af Respect matrix orientation when doing store op in RWByteAddressBuffer (#3484) 4 years ago
CGCall.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGClass.cpp 2a01c58f73 Fix RayQuery allocation for CSE, DCE, statics, arrays, and lifetimes (#2469) 6 years ago
CGCleanup.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 years ago
CGCleanup.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGDebugInfo.cpp a929b4a84a Code review feedback 4 years ago
CGDebugInfo.h e487566946 Make debug info of HLSL vectors more user friendly (#2018) 6 years ago
CGDecl.cpp b90095fc87 Don't create static global for uninited local const (#3345) 5 years ago
CGDeclCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGException.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGExpr.cpp 4d40670ef3 Fixed writing to RWTexture generating a load and store for each component (#3304) 5 years ago
CGExprAgg.cpp be5635eaa6 Fixed some ConstantBuffer crashes. (#3427) 4 years ago
CGExprCXX.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 years ago
CGExprComplex.cpp ccbb0ec117 [linux-port] Add missing case statements (#1346) 7 years ago
CGExprConstant.cpp 63ce61aee5 Fix constexpr cast involving matrix type (#3593) 4 years ago
CGExprScalar.cpp 7e0f44fa6f Cleanup part of compiling warnings (#2903) 5 years ago
CGHLSLMS.cpp 5fa34d1fd6 Save root sig for entry for lib. (#3669) 4 years ago
CGHLSLMSFinishCodeGen.cpp 2bda44fc06 Add constant evaluation for clamp() (#3581) 4 years ago
CGHLSLMSHelper.h 8e3a21c417 Call init function for entry of lib profiles. (#3350) 5 years ago
CGHLSLRootSignature.cpp 4098229583 Code cleanup. (#2708) 5 years ago
CGHLSLRuntime.cpp a7ee78049e De-duplicate numerical conversions code (#1885) 7 years ago
CGHLSLRuntime.h 5fa34d1fd6 Save root sig for entry for lib. (#3669) 4 years ago
CGLoopInfo.cpp d47cbb6579 Fixed [unroll] being interpreted as [unroll(1)]. (#1669) 7 years ago
CGLoopInfo.h d47cbb6579 Fixed [unroll] being interpreted as [unroll(1)]. (#1669) 7 years ago
CGObjC.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGObjCGNU.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGObjCMac.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGObjCRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGObjCRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGOpenCLRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGOpenCLRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGOpenMPRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGOpenMPRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGRecordLayout.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGRecordLayoutBuilder.cpp 40369a5884 Structure alignment Change (#721) 8 years ago
CGStmt.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 years ago
CGStmtOpenMP.cpp 68185161a2 [linux-port] Fix warnings from lambda functions (#1320) 7 years ago
CGVTT.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGVTables.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGVTables.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGValue.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CMakeLists.txt 4098229583 Code cleanup. (#2708) 5 years ago
CodeGenABITypes.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeGenAction.cpp 86104f415f Internal validator error messages don't need /Zi anymore. (#3606) 4 years ago
CodeGenFunction.cpp 5fa34d1fd6 Save root sig for entry for lib. (#3669) 4 years ago
CodeGenFunction.h eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 years ago
CodeGenModule.cpp b4bb5795cd Fix some argument passing and groupshared bad codegen and crashes 6 years ago
CodeGenModule.h d5bb3089cf Add support for custom allocators (#390) 8 years ago
CodeGenPGO.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeGenPGO.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeGenTBAA.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeGenTBAA.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeGenTypes.cpp d574d27c1f Implement Shader Model 6.6 (#3293) 5 years ago
CodeGenTypes.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CoverageMappingGen.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CoverageMappingGen.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
EHScopeStack.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ItaniumCXXABI.cpp d574d27c1f Implement Shader Model 6.6 (#3293) 5 years ago
MicrosoftCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ModuleBuilder.cpp 2b8ef5b57e Removed source from debug module. Support slim PDB. (#3348) 5 years ago
ObjectFilePCHContainerOperations.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
SanitizerMetadata.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
SanitizerMetadata.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
TargetInfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
TargetInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago

README.txt

IRgen optimization opportunities.

//===---------------------------------------------------------------------===//

The common pattern of
--
short x; // or char, etc
(x == 10)
--
generates an zext/sext of x which can easily be avoided.

//===---------------------------------------------------------------------===//

Bitfields accesses can be shifted to simplify masking and sign
extension. For example, if the bitfield width is 8 and it is
appropriately aligned then is is a lot shorter to just load the char
directly.

//===---------------------------------------------------------------------===//

It may be worth avoiding creation of alloca's for formal arguments
for the common situation where the argument is never written to or has
its address taken. The idea would be to begin generating code by using
the argument directly and if its address is taken or it is stored to
then generate the alloca and patch up the existing code.

In theory, the same optimization could be a win for block local
variables as long as the declaration dominates all statements in the
block.

NOTE: The main case we care about this for is for -O0 -g compile time
performance, and in that scenario we will need to emit the alloca
anyway currently to emit proper debug info. So this is blocked by
being able to emit debug information which refers to an LLVM
temporary, not an alloca.

//===---------------------------------------------------------------------===//

We should try and avoid generating basic blocks which only contain
jumps. At -O0, this penalizes us all the way from IRgen (malloc &
instruction overhead), all the way down through code generation and
assembly time.

On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just
direct branches!

//===---------------------------------------------------------------------===//