mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
[OPT] Fix handling of analyses rebuild (#5608)
All tests treat kAnalysisEnd like STL end iterators, which means its value must be greater than that of the last valid Analysis. Change-Id: Ibfaaf60bb450c508af0528dbe9c0729e6aa07b3b Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
parent
d15a7aa25d
commit
f869d391a5
@ -88,6 +88,9 @@ void IRContext::BuildInvalidAnalyses(IRContext::Analysis set) {
|
||||
if (set & kAnalysisDebugInfo) {
|
||||
BuildDebugInfoManager();
|
||||
}
|
||||
if (set & kAnalysisLiveness) {
|
||||
BuildLivenessManager();
|
||||
}
|
||||
}
|
||||
|
||||
void IRContext::InvalidateAnalysesExceptFor(
|
||||
|
@ -84,7 +84,7 @@ class IRContext {
|
||||
kAnalysisTypes = 1 << 15,
|
||||
kAnalysisDebugInfo = 1 << 16,
|
||||
kAnalysisLiveness = 1 << 17,
|
||||
kAnalysisEnd = 1 << 17
|
||||
kAnalysisEnd = 1 << 18
|
||||
};
|
||||
|
||||
using ProcessFunction = std::function<bool(Function*)>;
|
||||
|
Loading…
Reference in New Issue
Block a user