llvm-project/llvm/lib/Transforms
Cong Hou 7ab123a5cf Update the branch weight metadata in JumpThreading pass.
Currently 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: 250204
2015-10-13 18:43:10 +00:00
..
Hello Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
IPO IPO: Remove implicit ilist iterator conversions, NFC 2015-10-13 17:51:03 +00:00
InstCombine InstCombine: Remove ilist iterator implicit conversions, NFC 2015-10-13 16:59:33 +00:00
Instrumentation [PGO]: Eliminate calls to __llvm_profile_register_function for Linux. 2015-10-13 18:39:48 +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-13 18:43:10 +00:00
Utils TransformUtils: Remove implicit ilist iterator conversions, NFC 2015-10-13 02:39:05 +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