[PATCH] D71122: [ModuloSchedule] Fix data types in ModuloScheduleExpander::isLoopCarried
Thomas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 07:38:36 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcaabb713ea15: [ModuloSchedule] Fix data types in ModuloScheduleExpander::isLoopCarried (authored by ThomasR).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71122/new/
https://reviews.llvm.org/D71122
Files:
llvm/lib/CodeGen/ModuloSchedule.cpp
Index: llvm/lib/CodeGen/ModuloSchedule.cpp
===================================================================
--- llvm/lib/CodeGen/ModuloSchedule.cpp
+++ llvm/lib/CodeGen/ModuloSchedule.cpp
@@ -1190,7 +1190,7 @@
bool ModuloScheduleExpander::isLoopCarried(MachineInstr &Phi) {
if (!Phi.isPHI())
return false;
- unsigned DefCycle = Schedule.getCycle(&Phi);
+ int DefCycle = Schedule.getCycle(&Phi);
int DefStage = Schedule.getStage(&Phi);
unsigned InitVal = 0;
@@ -1199,7 +1199,7 @@
MachineInstr *Use = MRI.getVRegDef(LoopVal);
if (!Use || Use->isPHI())
return true;
- unsigned LoopCycle = Schedule.getCycle(Use);
+ int LoopCycle = Schedule.getCycle(Use);
int LoopStage = Schedule.getStage(Use);
return (LoopCycle > DefCycle) || (LoopStage <= DefStage);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71122.232858.patch
Type: text/x-patch
Size: 794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191209/8b5d2387/attachment.bin>
More information about the llvm-commits
mailing list