[PATCH] D134229: [RISCV] Make computeIncomingVLVTYPE more conservative when merging predecessor state.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 14:59:53 PDT 2022
craig.topper created this revision.
craig.topper added a reviewer: reames.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
If we have already calculated the incoming state before, use that
as our starting point to ensure we are conservative.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134229
Files:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Index: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -1088,7 +1088,9 @@
BBInfo.InQueue = false;
- VSETVLIInfo InInfo;
+ // Start with the previous entry so that we keep the most conservative state
+ // we have ever found.
+ VSETVLIInfo InInfo = BBInfo.Pred;
if (MBB.pred_empty()) {
// There are no predecessors, so use the default starting status.
InInfo.setUnknown();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134229.461385.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220919/2da1921e/attachment.bin>
More information about the llvm-commits
mailing list