opt -polly-process-unprofitable -polly-remarks-minimal -S -polly-codegen -polly-invariant-load-hoisting=false test/Isl/CodeGen/hoisted_load_escapes_through_phi.ll fails with r78673: %tmp1 = load i32, i32* @cont_STACKPOINTER, align 4 %0 = sext i32 %tmp1 to i64 Polly generated function could not be verified. Add -polly-codegen-verify=false to disable this assertion. The test case contains two scops in a row, where the first scop is code generated "before" the second scop. Unfortunately the second scop references the first scop in some of the SCEV expressions used, which results in parameter values of the second scop referencing an instruction ('tmp1') which is not any more dominating the second scop. We probably need to run SE.forgetValue() for all instruction in the original scop region. However, this might conflict with the caching of SCEV instructions in ScopDetection.
Fixed in r279047.