From 7c294ba13e3d82a64d96136485308b784c246abc Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Thu, 29 May 2008 13:39:00 +0000
Subject: [PATCH] Track profile derived status in SMPMeetType().

---
 SMPDataFlowAnalysis.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/SMPDataFlowAnalysis.cpp b/SMPDataFlowAnalysis.cpp
index cf9a53a7..fa0c2af7 100644
--- a/SMPDataFlowAnalysis.cpp
+++ b/SMPDataFlowAnalysis.cpp
@@ -442,6 +442,8 @@ SMPOperandType SMPTypeMeet(SMPOperandType Type1, SMPOperandType Type2) {
 		else if (IsNumeric(Type2) || IsUnknown(Type2))
 			MeetType = UNKNOWN;
 	}
+	if (ProfDerived && IsNotEqType(UNINIT, MeetType))
+		MeetType = MakeProfDerived(MeetType);
 	return MeetType;
 } // end of SMPTypeMeet()
 
-- 
GitLab