Andreas Zwinkau [Wed, 26 Oct 2011 08:48:29 +0000 (10:48 +0200)]
Use opt_manage framework for tailrec
Fixes test opt/fehler204
Christoph Mallon [Mon, 19 Sep 2011 06:30:33 +0000 (08:30 +0200)]
Dump array initialisers, which contain only bytes in the printable range, as strings instead of separate byte initialisers.
Eg.
[0] = 0x62
[1] = 0x6C
[2] = 0x61
[3] = 0x00]
becomes
[0...3] = "bla<NUL>"
TODO: Fix yComp, so it does not choke on backslashes.
Christoph Mallon [Wed, 21 Sep 2011 12:12:42 +0000 (14:12 +0200)]
Remove ia32_l_Setcc and remove set creation callback from ir_lower_mode_b().
It is just an unnecessary node, which the middleend does not understand and therefore cannot optimize.
Matthias Braun [Thu, 20 Oct 2011 17:12:53 +0000 (19:12 +0200)]
simply use long long
Most of the world can handle C99 now, and the important rest (=msvc) can
handle long long as an extension.
Matthias Braun [Thu, 20 Oct 2011 17:08:00 +0000 (19:08 +0200)]
remove unnecessary libcore bits
Matthias Braun [Thu, 20 Oct 2011 16:32:37 +0000 (18:32 +0200)]
remove is_Global/get_GlobalEntity
They have been unnecessary aliases for is_SymConst_addr_ent() and
get_SymConst_entity().
Matthias Braun [Thu, 20 Oct 2011 16:16:35 +0000 (18:16 +0200)]
consolidate utility macros in util.h
Matthias Braun [Thu, 20 Oct 2011 16:01:28 +0000 (18:01 +0200)]
irmode: remove support for exotic arithmetics
Matthias Braun [Thu, 20 Oct 2011 15:57:22 +0000 (17:57 +0200)]
tarvals are unique no need to use tarval_cmp for equality checks
Matthias Braun [Thu, 20 Oct 2011 14:45:38 +0000 (16:45 +0200)]
use a hook to dump vrp info instead of polluting irdump.c
Matthias Braun [Thu, 20 Oct 2011 14:26:30 +0000 (16:26 +0200)]
assert that no hook_entry is registered twice
Matthias Braun [Wed, 19 Oct 2011 17:41:18 +0000 (19:41 +0200)]
rename ir_phase to ir_nodemap and simplify interface
The new interface uses no complicated callbacks anymore, but is a simple
ir_node* -> void* nodemap. Adapted all users of ir_phase for this.
Matthias Braun [Wed, 19 Oct 2011 15:13:06 +0000 (17:13 +0200)]
belive: use sparse hashmap for block->data mapping
Matthias Braun [Wed, 19 Oct 2011 15:12:18 +0000 (17:12 +0200)]
cfopt: use a hashmap for sparse block->data mapping
Matthias Braun [Wed, 19 Oct 2011 11:00:08 +0000 (13:00 +0200)]
rename irnodemap to irnodehashmap
Matthias Braun [Wed, 19 Oct 2011 09:05:31 +0000 (11:05 +0200)]
iropt: add (a|b) & ~b => a & ~b rule
Matthias Braun [Wed, 19 Oct 2011 09:05:10 +0000 (11:05 +0200)]
ia32: change ShrD/ShlD patterns to match Add instead of Or
Matthias Braun [Wed, 19 Oct 2011 09:04:34 +0000 (11:04 +0200)]
normalise Or/Eor => Add where possible
Matthias Braun [Thu, 20 Oct 2011 12:26:36 +0000 (14:26 +0200)]
cast ctype functions input to unsigned char
From the manpage: If c is not an unsigned char value, or EOF, the
behavior of these functions is undefined.
(So putting char into them directly is wrong)
Matthias Braun [Thu, 20 Oct 2011 11:43:16 +0000 (13:43 +0200)]
make fltcalc.c more portable (and msvc independent)
Matthias Braun [Thu, 20 Oct 2011 10:26:48 +0000 (12:26 +0200)]
rename some constants to avoid clashes with system headers
Matthias Braun [Wed, 19 Oct 2011 20:03:53 +0000 (22:03 +0200)]
add a Doxyfile for people without firm-build
Matthias Braun [Wed, 19 Oct 2011 19:36:57 +0000 (21:36 +0200)]
generate_emitter.pl depends on generate_emitter_new.pl
Matthias Braun [Wed, 19 Oct 2011 19:36:44 +0000 (21:36 +0200)]
fix perl warning
Matthias Braun [Wed, 19 Oct 2011 19:34:14 +0000 (21:34 +0200)]
we (also) build a shared lib for which some architecture require PIC code
Matthias Braun [Mon, 17 Oct 2011 16:23:43 +0000 (18:23 +0200)]
sparc: emit extra-indentation for delay slots
Matthias Braun [Mon, 17 Oct 2011 13:40:00 +0000 (15:40 +0200)]
sparc: implement more fold-into-restore peephole optimizations
Matthias Braun [Mon, 17 Oct 2011 13:39:28 +0000 (15:39 +0200)]
be: factor out can_move_to function from sparc_emitter
Matthias Braun [Mon, 17 Oct 2011 10:56:19 +0000 (12:56 +0200)]
bepeephole: use global register indices
This simplifies the code and should make it slightly faster
Matthias Braun [Fri, 14 Oct 2011 14:48:51 +0000 (16:48 +0200)]
sparc: use AddCC, SubCC, MulCC
Matthias Braun [Fri, 14 Oct 2011 14:48:27 +0000 (16:48 +0200)]
generate nicer emitter code
Matthias Braun [Thu, 13 Oct 2011 15:48:16 +0000 (17:48 +0200)]
sparc: improve delay slot picking
Matthias Braun [Mon, 17 Oct 2011 13:57:57 +0000 (15:57 +0200)]
bepeephole: make assert about dominance less strict
Matthias Braun [Thu, 13 Oct 2011 15:48:00 +0000 (17:48 +0200)]
change strange indentation
Sebastian Buchwald [Mon, 17 Oct 2011 11:03:18 +0000 (13:03 +0200)]
Xor without address mode is commutative.
This fixes backend/builtin_parityl.c and backend/builtin_parityll.c.
Sebastian Buchwald [Mon, 17 Oct 2011 10:56:23 +0000 (12:56 +0200)]
Also track extended live ranges.
If the peephole replaced the current node by another node
the corresponding value is live before the current node.
This fixes x86code/flags.c.
Sebastian Buchwald [Thu, 13 Oct 2011 12:43:02 +0000 (14:43 +0200)]
Clean up code.
Sebastian Buchwald [Thu, 13 Oct 2011 12:42:47 +0000 (14:42 +0200)]
Fixed typo.
Sebastian Buchwald [Tue, 4 Oct 2011 19:22:56 +0000 (21:22 +0200)]
Lower double word builtins.
Sebastian Buchwald [Mon, 3 Oct 2011 18:34:30 +0000 (20:34 +0200)]
Fixed some typos.
Matthias Braun [Tue, 11 Oct 2011 13:20:25 +0000 (15:20 +0200)]
sparc: prefer andn,orn,xorn when they lead to smaller constants
(see testsuite/backend/sparc_notconsts.c for an example)
Matthias Braun [Sat, 1 Oct 2011 03:11:34 +0000 (05:11 +0200)]
sparc: peephole - fold copy into restore
Manuel Mohr [Wed, 28 Sep 2011 14:08:21 +0000 (16:08 +0200)]
sparc: Corrected sp-relative access warning.
Manuel Mohr [Wed, 28 Sep 2011 12:55:03 +0000 (14:55 +0200)]
sparc: Restore accidentally deleted assert.
Sebastian Buchwald [Wed, 28 Sep 2011 04:26:13 +0000 (06:26 +0200)]
Fixed local optimization.
The transformation (a << c1) | c2 => (a | (c2 >> c1)) << c1
is only valid if the lower bits of c2 are clean.
This fixes opt/pr37102.c.
Manuel Mohr [Tue, 27 Sep 2011 12:36:35 +0000 (14:36 +0200)]
sparc: Warn if trying to emit stack relative Lds/Sts with small offsets.
Manuel Mohr [Tue, 27 Sep 2011 10:58:37 +0000 (12:58 +0200)]
sparc: Lower CopyB nodes before lowering double words.
Matthias Braun [Tue, 27 Sep 2011 13:36:14 +0000 (15:36 +0200)]
sparc: attempt to fix stack alignment/address for omit-fp again
Matthias Braun [Tue, 27 Sep 2011 12:21:45 +0000 (14:21 +0200)]
sparc: fix wrong stack-offset in omit-fp commits
Matthias Braun [Tue, 27 Sep 2011 12:19:30 +0000 (14:19 +0200)]
sparc: va_arg functions may not use omit-fp
Matthias Braun [Mon, 26 Sep 2011 09:07:46 +0000 (11:07 +0200)]
sparc: read mode_gp from regclass instead of hardcoding mode_Iu
Matthias Braun [Fri, 23 Sep 2011 12:23:00 +0000 (14:23 +0200)]
fix frame_alloc_area not setting a type size
Matthias Braun [Fri, 23 Sep 2011 12:05:12 +0000 (14:05 +0200)]
include backend headers without "../"
This was an odd convention from the past, there's no need for it
anymore.
Matthias Braun [Fri, 23 Sep 2011 11:44:54 +0000 (13:44 +0200)]
remove old/unused XXX_transform_env_t structs
Matthias Braun [Fri, 23 Sep 2011 09:33:23 +0000 (11:33 +0200)]
sparc: mark has_delay_slot as node flag
Manuel Mohr [Tue, 27 Sep 2011 08:05:39 +0000 (10:05 +0200)]
Added option to prevent creation of misaligned loads/stores during CopyB lowering.
Andreas Zwinkau [Mon, 26 Sep 2011 08:37:06 +0000 (10:37 +0200)]
remove warning
Sebastian Buchwald [Fri, 23 Sep 2011 13:25:20 +0000 (15:25 +0200)]
Enqueue Phi nodes to reach fixpoint.
Sebastian Buchwald [Mon, 18 Jul 2011 16:16:24 +0000 (18:16 +0200)]
Fixed typos.
Manuel Mohr [Fri, 23 Sep 2011 10:49:38 +0000 (12:49 +0200)]
Consistently use new function to create compilerlib function entities.
Manuel Mohr [Thu, 22 Sep 2011 14:34:55 +0000 (16:34 +0200)]
Added callback mechanism to determine compilerlib function names.
Matthias Braun [Thu, 22 Sep 2011 14:35:56 +0000 (16:35 +0200)]
convenience function to see if mux gets optimized away
backends can use this to allow all mux nodes which get optimized away by
the middleend anyway.
This fixes abs handling on sparc.
Matthias Braun [Thu, 22 Sep 2011 12:56:22 +0000 (14:56 +0200)]
simplify transform_node_Mux by using is_single_bit
Matthias Braun [Thu, 22 Sep 2011 12:34:39 +0000 (14:34 +0200)]
cleanup in firm_types.h
Matthias Braun [Thu, 22 Sep 2011 12:29:47 +0000 (14:29 +0200)]
kill deprecated firm_parameter_t interface
Matthias Braun [Thu, 22 Sep 2011 12:23:32 +0000 (14:23 +0200)]
remove old+unused interval_analysis
Matthias Braun [Thu, 22 Sep 2011 12:21:02 +0000 (14:21 +0200)]
remove old+unused execution_frequency/field_temperature
Matthias Braun [Thu, 22 Sep 2011 12:06:04 +0000 (14:06 +0200)]
cleanup comments in public headers
Matthias Braun [Thu, 22 Sep 2011 11:51:48 +0000 (13:51 +0200)]
remove old+unused structure analysis
Matthias Braun [Thu, 22 Sep 2011 11:49:02 +0000 (13:49 +0200)]
remove old+unused rta code
Manuel Mohr [Wed, 21 Sep 2011 13:31:16 +0000 (15:31 +0200)]
sparc: Improve handling of MemPerm nodes.
Matthias Braun [Wed, 21 Sep 2011 11:03:16 +0000 (13:03 +0200)]
backend always expects outedges, assure them after place_code, optimize_graph_df
Matthias Braun [Wed, 21 Sep 2011 10:46:49 +0000 (12:46 +0200)]
respect ir_dump_flag_loop
(a recent commit broke it)
Sebastian Buchwald [Tue, 20 Sep 2011 11:15:40 +0000 (13:15 +0200)]
Make local Phi optimization robust against Bads.
Matthias Braun [Mon, 19 Sep 2011 05:03:06 +0000 (07:03 +0200)]
cfopt: code cleanup
Matthias Braun [Sun, 18 Sep 2011 15:40:41 +0000 (17:40 +0200)]
eliminate ip_outs_state and trouts_state
Noone is really using these informations at the moment and they weren't
correctly invalidated anyway.
Matthias Braun [Sun, 18 Sep 2011 15:31:21 +0000 (17:31 +0200)]
use IR_GRAPH_STATE instead of irg_extblk_info_state
Matthias Braun [Sun, 18 Sep 2011 15:12:03 +0000 (17:12 +0200)]
add some missing tests to the node_cmp_attr functions
Matthias Braun [Sat, 17 Sep 2011 15:51:07 +0000 (17:51 +0200)]
sparc: do not emit the node comment twice for Ba
Matthias Braun [Sat, 17 Sep 2011 15:49:45 +0000 (17:49 +0200)]
sparc: dont emit unnecarry block labels
Matthias Braun [Sat, 17 Sep 2011 11:23:41 +0000 (13:23 +0200)]
add missing keeps after rematerializing nodes
Matthias Braun [Fri, 16 Sep 2011 17:19:04 +0000 (19:19 +0200)]
lower_mode_b: handle BadB
Matthias Braun [Fri, 16 Sep 2011 14:31:32 +0000 (16:31 +0200)]
do not create ConstB nodes in GRAPH_STATE_MODEB_LOWERED
Matthias Braun [Fri, 16 Sep 2011 13:56:32 +0000 (15:56 +0200)]
remove unreachable_code/bads after normalize_n_returns
Matthias Braun [Fri, 16 Sep 2011 13:52:37 +0000 (15:52 +0200)]
normalize_n_returns does produce unreachable code and invalidates other stuff
Matthias Braun [Fri, 16 Sep 2011 13:56:10 +0000 (15:56 +0200)]
clear no_unreachable_code state when optimizing Cond/Projs
Matthias Braun [Fri, 16 Sep 2011 13:54:00 +0000 (15:54 +0200)]
change unreachable code elmination to the simpler remove links into unreachable code scheme
Matthias Braun [Fri, 16 Sep 2011 13:52:56 +0000 (15:52 +0200)]
dump graph state
Matthias Braun [Fri, 16 Sep 2011 12:06:09 +0000 (14:06 +0200)]
change global optdesc declarations to static
some were missing anyway and nobody is using the global declarations anyway
Matthias Braun [Fri, 16 Sep 2011 11:56:54 +0000 (13:56 +0200)]
remove loopinfo stuff and exclusively use IR_GRAPH_STATE_CONSISTENT_LOOPINFO
Matthias Braun [Fri, 16 Sep 2011 11:51:26 +0000 (13:51 +0200)]
fix warning because of now ignored invalidate flag
Matthias Braun [Fri, 16 Sep 2011 11:26:23 +0000 (13:26 +0200)]
remove broken-for-verifier flag
Matthias Braun [Fri, 16 Sep 2011 11:22:00 +0000 (13:22 +0200)]
rename NO_BAD_BLOCKS to NO_BADS, remove unnecessary implication from opt_manage
Matthias Braun [Fri, 16 Sep 2011 09:28:33 +0000 (11:28 +0200)]
cleanup/fix optimize_graph_df flag handling
Matthias Braun [Thu, 15 Sep 2011 15:19:48 +0000 (17:19 +0200)]
simplify code
Matthias Braun [Thu, 15 Sep 2011 15:19:35 +0000 (17:19 +0200)]
we must clear block+phi-node links
Matthias Braun [Thu, 15 Sep 2011 13:47:16 +0000 (15:47 +0200)]
transform_node_Block does not produce bad blocks anyway
Matthias Braun [Thu, 15 Sep 2011 13:49:03 +0000 (15:49 +0200)]
do not use custom copy without custom attributes
Matthias Braun [Sat, 17 Sep 2011 10:54:33 +0000 (12:54 +0200)]
sparc: fix spec, it's called dump_func not dump_node
Manuel Mohr [Mon, 19 Sep 2011 09:30:34 +0000 (11:30 +0200)]
Turn off CSE when creating Projs during double word lowering.