Commit ca4c41a
Simplify simplifyRedundantCondBranch
Summary:
No need to construct a vector of branches to process, they can be processed as
they are discovered.
Don't abort on unrecognized branches, they should just be skipped instead.
Make deleting the old branch a little more exception-resilient by using
std::unique_ptr.
Reviewed By: mpage
Differential Revision: D114321698
fbshipit-source-id: 1032e686dd54f9907bfdc028d58eeecd3d6858b61 parent b8fc9ff commit ca4c41a
1 file changed
Lines changed: 15 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
860 | | - | |
| 859 | + | |
861 | 860 | | |
862 | 861 | | |
863 | 862 | | |
864 | | - | |
865 | | - | |
866 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
| 869 | + | |
| 870 | + | |
871 | 871 | | |
872 | 872 | | |
| 873 | + | |
| 874 | + | |
873 | 875 | | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
877 | 879 | | |
878 | 880 | | |
879 | | - | |
880 | | - | |
| 881 | + | |
881 | 882 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
891 | 888 | | |
892 | 889 | | |
893 | 890 | | |
| |||
0 commit comments