[PATCH] D137758: [HardwareLoops] remove loops which has undef count
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 9 18:25:23 PST 2022
shchenz created this revision.
shchenz added reviewers: samparker, dmgreen, nikic, PowerPC.
Herald added subscribers: steven.zhang, hiraditya, nemanjai.
Herald added a project: All.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Remove the loop which has the loop count `undef`. This aligns with `opt` behavior.
For the PowerPC code gen changes, to keep the original test point, I add a valid count for the loop in the input IR instead of changing the assembly based on the current IR.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137758
Files:
llvm/lib/CodeGen/HardwareLoops.cpp
llvm/test/CodeGen/PowerPC/pr48519.ll
llvm/test/CodeGen/PowerPC/sms-iterator.ll
llvm/test/CodeGen/PowerPC/sms-phi-3.ll
llvm/test/Transforms/HardwareLoops/remove-loop-count-undef-loop.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137758.474408.patch
Type: text/x-patch
Size: 9150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221110/f52566a5/attachment.bin>
More information about the llvm-commits
mailing list