Avoid moving abnormal defs when rewriting complex loads
Fixes a bug where abnormal definitions were moved incorrectly during complex load rewrites.
This change prevents the forwprop pass from moving abnormal definitions when rewriting complex loads into component loads. This corrects an issue where such movements could lead to incorrect program behavior. A new test case is included to verify the fix.
In Details
This commit addresses PR tree-optimization/128236 by refining the pass_forwprop::execute function in tree-ssa-forwprop.cc. It specifically avoids moving abnormal definitions during the rewriting of complex loads to component loads, a scenario that could arise in the SSA form. The fix ensures that the intermediate representation remains valid and that subsequent optimizations or code generation are not affected by incorrect def movements.