aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-10-31 15:18:00 -0400
committerAndrew MacLeod <amacleod@redhat.com>2022-11-01 09:05:20 -0400
commit7b1cdca6d6d594a8a9d88062252212e145f2f4eb (patch)
tree9fe234c5b99e729daec61ecbc6e78199ea4f0324 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent592bbe3d7eb3cff656c731e84ad872719a4a9d16 (diff)
downloadgcc-7b1cdca6d6d594a8a9d88062252212e145f2f4eb.zip
gcc-7b1cdca6d6d594a8a9d88062252212e145f2f4eb.tar.gz
gcc-7b1cdca6d6d594a8a9d88062252212e145f2f4eb.tar.bz2
Remove builtin_unreachable in VRP
Removal of __builtin_unreachable calls were handled in an inconsistent way. This removes then in the VRP pass, and sets the global range appropriately. * tree-vrp.cc (class remove_unreachable): New. (remove_unreachable::maybe_register_block): New. (remove_unreachable::remove_and_update_globals): New. (rvrp_folder::rvrp_folder): Initialize m_unreachable. (rvrp_folder::post_fold_bb): Maybe register unreachable block. (rvrp_folder::m_unreachable): New member. (execute_ranger_vrp): Add final_pass flag, remove unreachables.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions