diff mbox series

[COMMITTED] Clear killing defs when resetting the path in, path_oracle.

Message ID d121e64d-3c9c-691d-b7b9-557d7fdb7e53@redhat.com
State New
Headers show
Series [COMMITTED] Clear killing defs when resetting the path in, path_oracle. | expand

Commit Message

Andrew MacLeod May 13, 2022, 1:52 p.m. UTC
When we clear the path in the relation path oracle, we should also reset 
the killing defs bitmap.

Bootstraps on build-x86_64-pc-linux with no regressions.  Pushed.


Andrew
diff mbox series

Patch

commit 602a3161f425ee3fe325413eeab9792e8e07a2ff
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Wed Feb 23 12:25:20 2022 -0500

    Clear killing defs when resetting the path in path_oracle.
    
    When we reset the path oracle, we should clear the killing defs vector.
    
            * value-relation.cc (path_oracle::reset_path): Clear killing_defs.

diff --git a/gcc/value-relation.cc b/gcc/value-relation.cc
index 077ab4230a7..db2db33feb4 100644
--- a/gcc/value-relation.cc
+++ b/gcc/value-relation.cc
@@ -1459,6 +1459,7 @@  path_oracle::reset_path ()
   bitmap_clear (m_equiv.m_names);
   m_relations.m_head = NULL;
   bitmap_clear (m_relations.m_names);
+  bitmap_clear (m_killed_defs);
 }
 
 // Dump relation in basic block... Do nothing here.