* config/bfin/bfin.c (np_check_regno, np_after_branch): New static
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 14:52:02 +0000 (14:52 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Sep 2009 14:52:02 +0000 (14:52 +0000)
commite36d8ec6f1ba295869e82950825e4e7ae1ec78b9
tree4d0132035833db1fad0d5ed4831939855a26f228
parent11b21bc821f2d1c9820093879b7d5bab1c2553f1
* config/bfin/bfin.c (np_check_regno, np_after_branch): New static
variables.
(note_np_check_stores): New function.
(harmless_null_pointer_p): New function.
(trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
changed.  Take into account whether we're in the shadow of a condjump
that tested NP_REG for NULL.
Lose all code that tested for SEQUENCEs.
(workaround_speculation): Avoid inserting NOPs for loads that are
either always executed or a NULL pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151513 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/bfin/bfin.c