<div dir="ltr">Hello,<div><br></div><div>In InstructionCombining.cpp, under <a class="" href="http://llvm.org/docs/doxygen/html/InstructionCombining_8cpp.html#a65beadbfc094f4040b353518b98d0c07" title="Walk the function in depth-first order, adding all reachable code to the worklist." style="font-family:monospace,fixed;font-size:9pt;line-height:15px;color:rgb(70,101,162);text-decoration:none">AddReachableCodeToWorklist</a>, DCE and ConstFold are performed but MadeIRChange is not set to true (lines 2912 and 2924). Is there some underlying assumption that supports this? </div><div><br></div><div>Intuitively not setting MadeIRChanges to true at these points could allow Instruction Combining to exit early while there is still work to do.</div><div><br></div><div>Thank you,</div><div>Sain</div></div>