projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trverify: cleanup, check irg.entity == entity.irg
[libfirm]
/
ir
/
opt
/
opt_confirms.c
diff --git
a/ir/opt/opt_confirms.c
b/ir/opt/opt_confirms.c
index
611ee19
..
817ebe7
100644
(file)
--- a/
ir/opt/opt_confirms.c
+++ b/
ir/opt/opt_confirms.c
@@
-94,7
+94,7
@@
static tarval *compare_iv_dbg(const interval_t *l_iv, const interval_t *r_iv, ir
* This is a often needed case, so we handle here Confirm
* nodes too.
*/
* This is a often needed case, so we handle here Confirm
* nodes too.
*/
-
FIRM_API int value_not_zero(const ir_node *n, ir_node_cnst_ptr
*confirm)
+
int value_not_zero(const ir_node *n, const ir_node *
*confirm)
{
#define RET_ON(x) if (x) { *confirm = n; return 1; } break
{
#define RET_ON(x) if (x) { *confirm = n; return 1; } break
@@
-167,13
+167,11
@@
FIRM_API int value_not_zero(const ir_node *n, ir_node_cnst_ptr *confirm)
/*
* Check, if the value of a node cannot represent a NULL pointer.
*
/*
* Check, if the value of a node cannot represent a NULL pointer.
*
- * - Casts are skipped
- * - If sel_based_null_check_elim is enabled, all
- * Sel nodes can be skipped.
+ * - Casts are skipped, Sels are skipped
* - A SymConst(entity) is NEVER a NULL pointer
* - Confirms are evaluated
*/
* - A SymConst(entity) is NEVER a NULL pointer
* - Confirms are evaluated
*/
-
FIRM_API int value_not_null(const ir_node *n, ir_node_cnst_ptr
*confirm)
+
int value_not_null(const ir_node *n, const ir_node *
*confirm)
{
ir_tarval *tv;
{
ir_tarval *tv;
@@
-185,11
+183,9
@@
FIRM_API int value_not_null(const ir_node *n, ir_node_cnst_ptr *confirm)
return 1;
assert(mode_is_reference(get_irn_mode(n)));
return 1;
assert(mode_is_reference(get_irn_mode(n)));
- if (get_opt_sel_based_null_check_elim()) {
- /* skip all Sel nodes and Cast's */
- while (is_Sel(n)) {
- n = skip_Cast(get_Sel_ptr(n));
- }
+ /* skip all Sel nodes and Cast's */
+ while (is_Sel(n)) {
+ n = skip_Cast(get_Sel_ptr(n));
}
while (1) {
if (is_Cast(n)) { n = get_Cast_op(n); continue; }
}
while (1) {
if (is_Cast(n)) { n = get_Cast_op(n); continue; }
@@
-236,7
+232,7
@@
extern "C++" {
* If the mode of the value did not honor signed zeros, else
* check for >= 0 or < 0.
*/
* If the mode of the value did not honor signed zeros, else
* check for >= 0 or < 0.
*/
-
FIRM_API
ir_value_classify_sign classify_value_sign(ir_node *n)
+ir_value_classify_sign classify_value_sign(ir_node *n)
{
ir_tarval *tv, *c;
ir_mode *mode;
{
ir_tarval *tv, *c;
ir_mode *mode;
@@
-634,7
+630,7
@@
static int is_transitive(ir_relation relation)
* @param right the right operand of the Cmp
* @param relation the compare relation
*/
* @param right the right operand of the Cmp
* @param relation the compare relation
*/
-
FIRM_API
ir_tarval *computed_value_Cmp_Confirm(const ir_node *cmp, ir_node *left, ir_node *right, ir_relation relation)
+ir_tarval *computed_value_Cmp_Confirm(const ir_node *cmp, ir_node *left, ir_node *right, ir_relation relation)
{
ir_node *l_bound;
ir_relation l_relation, res_relation, neg_relation;
{
ir_node *l_bound;
ir_relation l_relation, res_relation, neg_relation;