mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[Matrix] Bail out early if there are no matrix intrinsics.
If there are no matrix intrinsics in a function, we can directly bail out, as there's nothing left to do. Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D102931
This commit is contained in:
parent
4e6ce44315
commit
2e9363c644
@ -677,6 +677,10 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// Avoid unnecessary work if there are no matrix intrinsics in the function.
|
||||
if (WorkList.empty())
|
||||
return false;
|
||||
|
||||
// Propagate shapes until nothing changes any longer.
|
||||
while (!WorkList.empty()) {
|
||||
WorkList = propagateShapeForward(WorkList);
|
||||
|
Loading…
Reference in New Issue
Block a user