2
0
Adam Yang d08b307146 Fixed global constructors evaluated at codegen aren't removed (#3389) 5 жил өмнө
..
ABIInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
BackendUtil.cpp 4c66d72760 Enabled loop exit structurizer by default. (#3334) 5 жил өмнө
CGAtomic.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGBlocks.cpp a5843199c5 Enable warnings as errors for clang builds (#3012) 5 жил өмнө
CGBlocks.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGBuilder.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGBuiltin.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCUDANV.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCUDARuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCUDARuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCXXABI.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGCall.cpp 29759a8942 Fix remaining Clang warnings (#3008) 5 жил өмнө
CGCall.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGClass.cpp 2a01c58f73 Fix RayQuery allocation for CSE, DCE, statics, arrays, and lifetimes (#2469) 6 жил өмнө
CGCleanup.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 жил өмнө
CGCleanup.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGDebugInfo.cpp d574d27c1f Implement Shader Model 6.6 (#3293) 5 жил өмнө
CGDebugInfo.h e487566946 Make debug info of HLSL vectors more user friendly (#2018) 6 жил өмнө
CGDecl.cpp b90095fc87 Don't create static global for uninited local const (#3345) 5 жил өмнө
CGDeclCXX.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGException.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGExpr.cpp 4d40670ef3 Fixed writing to RWTexture generating a load and store for each component (#3304) 5 жил өмнө
CGExprAgg.cpp 5d5f293e5a Take care CK_HLSLDerivedToBase in AggExprEmitter::VisitCastExpr. (#2312) 6 жил өмнө
CGExprCXX.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 жил өмнө
CGExprComplex.cpp ccbb0ec117 [linux-port] Add missing case statements (#1346) 7 жил өмнө
CGExprConstant.cpp b4298af6f5 Support constant expression truncation (#2870) 5 жил өмнө
CGExprScalar.cpp 7e0f44fa6f Cleanup part of compiling warnings (#2903) 5 жил өмнө
CGHLSLMS.cpp 8e3a21c417 Call init function for entry of lib profiles. (#3350) 5 жил өмнө
CGHLSLMSFinishCodeGen.cpp d08b307146 Fixed global constructors evaluated at codegen aren't removed (#3389) 5 жил өмнө
CGHLSLMSHelper.h 8e3a21c417 Call init function for entry of lib profiles. (#3350) 5 жил өмнө
CGHLSLRootSignature.cpp 4098229583 Code cleanup. (#2708) 5 жил өмнө
CGHLSLRuntime.cpp a7ee78049e De-duplicate numerical conversions code (#1885) 7 жил өмнө
CGHLSLRuntime.h eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 жил өмнө
CGLoopInfo.cpp d47cbb6579 Fixed [unroll] being interpreted as [unroll(1)]. (#1669) 7 жил өмнө
CGLoopInfo.h d47cbb6579 Fixed [unroll] being interpreted as [unroll(1)]. (#1669) 7 жил өмнө
CGObjC.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGObjCGNU.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGObjCMac.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGObjCRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGObjCRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGOpenCLRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGOpenCLRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGOpenMPRuntime.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGOpenMPRuntime.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGRecordLayout.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGRecordLayoutBuilder.cpp 40369a5884 Structure alignment Change (#721) 8 жил өмнө
CGStmt.cpp eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 жил өмнө
CGStmtOpenMP.cpp 68185161a2 [linux-port] Fix warnings from lambda functions (#1320) 7 жил өмнө
CGVTT.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGVTables.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGVTables.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CGValue.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CMakeLists.txt 4098229583 Code cleanup. (#2708) 5 жил өмнө
CodeGenABITypes.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CodeGenAction.cpp 51ea81fcc6 Correct GV error message crash (#3161) 5 жил өмнө
CodeGenFunction.cpp 227c8e6f5a Added instructions to preserve intermediate values of computations. (#2721) 5 жил өмнө
CodeGenFunction.h eaa7f95d07 Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 5 жил өмнө
CodeGenModule.cpp b4bb5795cd Fix some argument passing and groupshared bad codegen and crashes 6 жил өмнө
CodeGenModule.h d5bb3089cf Add support for custom allocators (#390) 8 жил өмнө
CodeGenPGO.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CodeGenPGO.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CodeGenTBAA.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CodeGenTBAA.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CodeGenTypes.cpp d574d27c1f Implement Shader Model 6.6 (#3293) 5 жил өмнө
CodeGenTypes.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CoverageMappingGen.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
CoverageMappingGen.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
EHScopeStack.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
ItaniumCXXABI.cpp d574d27c1f Implement Shader Model 6.6 (#3293) 5 жил өмнө
MicrosoftCXXABI.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
ModuleBuilder.cpp 2b8ef5b57e Removed source from debug module. Support slim PDB. (#3348) 5 жил өмнө
ObjectFilePCHContainerOperations.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
SanitizerMetadata.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
SanitizerMetadata.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө
TargetInfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 жил өмнө
TargetInfo.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 жил өмнө

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!

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