[PATCH] D138132: [JumpThreading] Preserve profile metadata during select unfolding

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 23:58:26 PST 2022


mkazantsev added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:2762
   BI->applyMergedLocation(PredTerm->getDebugLoc(), SI->getDebugLoc());
+  BI->copyMetadata(*SI, {LLVMContext::MD_prof});
   SIUse->setIncomingValue(Idx, SI->getFalseValue());
----------------
Should this also be under `HasProfileData`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138132/new/

https://reviews.llvm.org/D138132



More information about the llvm-commits mailing list