+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
+ * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
+ "insn" from rtx to rtx_insn *.
+ (permute_load): Likewise for param "insn".
+ (permute_store): Likewise.
+ (handle_special_swappables): Likewise for local "insn".
+ (replace_swap_with_copy): Likewise for locals "insn" and
+ "new_insn".
+ (rs6000_analyze_swaps): Likewise for local "insn".
+
2014-08-25 David Malcolm <dmalcolm@redhat.com>
* regrename.h (struct du_chain): Strengthen field "insn" from rtx
{
public:
/* Pointer to the insn. */
- rtx insn;
+ rtx_insn *insn;
/* Set if insn contains a mention of a vector register. All other
fields are undefined if this field is unset. */
unsigned int is_relevant : 1;
/* Convert the non-permuting load INSN to a permuting one. */
static void
-permute_load (rtx insn)
+permute_load (rtx_insn *insn)
{
rtx body = PATTERN (insn);
rtx mem_op = SET_SRC (body);
/* Convert the non-permuting store INSN to a permuting one. */
static void
-permute_store (rtx insn)
+permute_store (rtx_insn *insn)
{
rtx body = PATTERN (insn);
rtx src_reg = SET_SRC (body);
static void
handle_special_swappables (swap_web_entry *insn_entry, unsigned i)
{
- rtx insn = insn_entry[i].insn;
+ rtx_insn *insn = insn_entry[i].insn;
rtx body = PATTERN (insn);
switch (insn_entry[i].special_handling)
static void
replace_swap_with_copy (swap_web_entry *insn_entry, unsigned i)
{
- rtx insn = insn_entry[i].insn;
+ rtx_insn *insn = insn_entry[i].insn;
rtx body = PATTERN (insn);
rtx src_reg = XEXP (SET_SRC (body), 0);
rtx copy = gen_rtx_SET (VOIDmode, SET_DEST (body), src_reg);
- rtx new_insn = emit_insn_before (copy, insn);
+ rtx_insn *new_insn = emit_insn_before (copy, insn);
set_block_for_insn (new_insn, BLOCK_FOR_INSN (insn));
df_insn_rescan (new_insn);
{
swap_web_entry *insn_entry;
basic_block bb;
- rtx insn;
+ rtx_insn *insn;
/* Dataflow analysis for use-def chains. */
df_set_flags (DF_RD_PRUNE_DEAD_DEFS);