summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-02-13 01:05:58 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-02-13 01:05:58 +0100
commitbe60c5925b33fa3cc78f28e869026b1f9fb4f3ae (patch)
treeb545e63886636a90ba3b448d29f9a2a550194377 /ir/ana
parente246b18867789deb458ab706fa9460c458195ade (diff)
Do not use computed_value() in constbits analysis.
computed_value() uses some non-trivial patterns (Confirm nodes etc.) that break the assumption that the transfer function only looks at its direct operands. This fixes opt/fehler313.c.
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/constbits.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ir/ana/constbits.c b/ir/ana/constbits.c
index ab95ffc..e5b8153 100644
--- a/ir/ana/constbits.c
+++ b/ir/ana/constbits.c
@@ -337,15 +337,6 @@ repeatphi:
goto undefined;
}
- /* leverage compute_value_node_XXX knowledge */
- ir_tarval *computed = computed_value(irn);
- if (tarval_is_constant(computed)) {
- z = o = computed;
- goto set_info;
- } else if (computed == tarval_bad) {
- goto undefined;
- }
-
switch (get_irn_opcode(irn)) {
case iro_Bad:
undefined: