1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/lib/Transforms
Cong Hou 664f8a8312 Update the branch weight metadata in JumpThreading pass.
In JumpThreading pass, the branch weight metadata is not updated after CFG modification. Consider the jump threading on PredBB, BB, and SuccBB. After jump threading, the weight on BB->SuccBB should be adjusted as some of it is contributed by the edge PredBB->BB, which doesn't exist anymore. This patch tries to update the edge weight in metadata on BB->SuccBB by scaling it by 1 - Freq(PredBB->BB) / Freq(BB->SuccBB). 

Differential revision: http://reviews.llvm.org/D10979

llvm-svn: 250089
2015-10-12 19:44:08 +00:00
..
Hello Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstCombine [InstCombine][X86][XOP] Combine XOP integer vector comparisons to native IR 2015-10-11 14:38:34 +00:00
Instrumentation New MSan mapping layout (llvm part). 2015-10-08 21:35:26 +00:00
IPO GlobalOpt does not treat externally_initialized globals correctly 2015-10-12 13:20:52 +00:00
ObjCARC [PM/AA] Rebuild LLVM's alias analysis infrastructure in a way compatible 2015-09-09 17:55:00 +00:00
Scalar Update the branch weight metadata in JumpThreading pass. 2015-10-12 19:44:08 +00:00
Utils GlobalOpt does not treat externally_initialized globals correctly 2015-10-12 13:20:52 +00:00
Vectorize [LoopVectorize] Shrink integer operations into the smallest type possible 2015-10-12 12:34:45 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile