1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
ABIInfo.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Address.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Android.bp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
BackendUtil.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGAtomic.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGBlocks.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGBlocks.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGBuilder.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGBuiltin.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCUDABuiltin.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCUDANV.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCUDARuntime.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCUDARuntime.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCXX.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCXXABI.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCXXABI.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCall.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCall.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGClass.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCleanup.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGCleanup.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGDebugInfo.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGDebugInfo.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGDecl.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGDeclCXX.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGException.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExpr.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExprAgg.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExprCXX.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExprComplex.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExprConstant.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGExprScalar.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGLoopInfo.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGLoopInfo.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGObjC.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGObjCGNU.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGObjCMac.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGObjCRuntime.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGObjCRuntime.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenCLRuntime.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenCLRuntime.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenMPRuntime.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenMPRuntime.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenMPRuntimeNVPTX.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGOpenMPRuntimeNVPTX.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGRecordLayout.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGRecordLayoutBuilder.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGStmt.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGStmtOpenMP.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGVTT.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGVTables.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGVTables.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CGValue.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CMakeLists.txt Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenABITypes.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenAction.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenFunction.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenFunction.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenModule.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenModule.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenPGO.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenPGO.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenTBAA.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenTBAA.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenTypeCache.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenTypes.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CodeGenTypes.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CoverageMappingGen.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CoverageMappingGen.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
EHScopeStack.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
ItaniumCXXABI.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
MicrosoftCXXABI.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
ModuleBuilder.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
ObjectFilePCHContainerOperations.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.txt Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SanitizerMetadata.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SanitizerMetadata.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SwiftCallingConv.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
TargetInfo.cpp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
TargetInfo.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 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!

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