Commit e5e32183 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

beverify: Use the proper type for schedule time steps.

parent 64790ad7
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* @author Matthias Braun * @author Matthias Braun
* @date 05.05.2006 * @date 05.05.2006
*/ */
#include <limits.h>
#include <stdbool.h> #include <stdbool.h>
#include "bitset.h" #include "bitset.h"
...@@ -131,9 +130,6 @@ typedef struct be_verify_schedule_env_t_ { ...@@ -131,9 +130,6 @@ typedef struct be_verify_schedule_env_t_ {
static void verify_schedule_walker(ir_node *block, void *data) static void verify_schedule_walker(ir_node *block, void *data)
{ {
be_verify_schedule_env_t *env = (be_verify_schedule_env_t*) data; be_verify_schedule_env_t *env = (be_verify_schedule_env_t*) data;
ir_node *non_phi_found = NULL;
ir_node *cfchange_found = NULL;
int last_timestep = INT_MIN;
/* /*
* Tests for the following things: * Tests for the following things:
...@@ -141,6 +137,9 @@ static void verify_schedule_walker(ir_node *block, void *data) ...@@ -141,6 +137,9 @@ static void verify_schedule_walker(ir_node *block, void *data)
* block * block
* 2. No value is defined after it has been used * 2. No value is defined after it has been used
*/ */
ir_node *non_phi_found = NULL;
ir_node *cfchange_found = NULL;
sched_timestep_t last_timestep = 0;
sched_foreach(block, node) { sched_foreach(block, node) {
/* this node is scheduled */ /* this node is scheduled */
if (bitset_is_set(env->scheduled, get_irn_idx(node))) { if (bitset_is_set(env->scheduled, get_irn_idx(node))) {
...@@ -156,7 +155,7 @@ static void verify_schedule_walker(ir_node *block, void *data) ...@@ -156,7 +155,7 @@ static void verify_schedule_walker(ir_node *block, void *data)
} }
/* Check that timesteps are increasing */ /* Check that timesteps are increasing */
int timestep = sched_get_time_step(node); sched_timestep_t timestep = sched_get_time_step(node);
if (timestep <= last_timestep) { if (timestep <= last_timestep) {
verify_warnf(block, "schedule timestep did not increase at %+F", node); verify_warnf(block, "schedule timestep did not increase at %+F", node);
env->problem_found = true; env->problem_found = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment