aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorRam-NK <ramkrishnan.nk@huawei.com>2023-01-16 14:23:46 -0500
committerCongzheUalberta <congzhecao@gmail.com>2023-01-16 14:36:06 -0500
commitee7188c8b2ab06e740470cee368b137e0781958c (patch)
treef562c13ed00c2f05c9cf1e32681372077e7f3b27 /llvm/lib/CodeGen/MachineFunction.cpp
parent3f2f83ef41419507bcdaf751b86713ef193b7de0 (diff)
downloadllvm-ee7188c8b2ab06e740470cee368b137e0781958c.zip
llvm-ee7188c8b2ab06e740470cee368b137e0781958c.tar.gz
llvm-ee7188c8b2ab06e740470cee368b137e0781958c.tar.bz2
[LoopInterchange] Correcting the profitability check
Before D135808, There would be endless loop interchange posibility (no proper priority was there in profitability check. Any profitable check may leads to loop-interchange). With this patch, there is no endless interchange (priority in profitable check is defined. Order of decision is 'Cache cost' check, 'InstrOrderCost', 'Vectorization'). Corrected the dependency checking inside isProfitableForVectorization(), corrected the checking of bad order loops in isProfitablePerInstrOrderCost(). Reviewed By: Meinersbur, bmahjour, #loopoptwg Differential Revision: https://reviews.llvm.org/D135808
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions