[PATCH] D122259: [SelectOpti][2/5] Select-to-branch base transformation
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 14:26:56 PDT 2022
davidxl added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectOptimize.cpp:178
+ auto *FalseBranch = BranchInst::Create(EndBlock, FalseBlock);
+ FalseBranch->setDebugLoc(SI->getDebugLoc());
+
----------------
The MD_prof data needs to be passed from select to the branch.
================
Comment at: llvm/test/CodeGen/X86/select-optimize.ll:1
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=x86_64-unknown-unknown -disable-select-optimize=false -x86-cmov-converter=false -disable-cgp-select2branch=true < %s | FileCheck %s
----------------
Add more test cases with prof meta data on select?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122259/new/
https://reviews.llvm.org/D122259
More information about the llvm-commits
mailing list