aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-23 15:50:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:37 -0700
commit29cc9c0d4c96f215061031c6c5e4331feec75ebb (patch)
tree58584bfff59c8184b9474aa9446ab1c0439d177b /cse.c
parentc715712d2cab0115107a2cbf3c6bcf66d7cd11ea (diff)
downloadsparse-29cc9c0d4c96f215061031c6c5e4331feec75ebb.tar.gz
sparse-29cc9c0d4c96f215061031c6c5e4331feec75ebb.tar.xz
sparse-29cc9c0d4c96f215061031c6c5e4331feec75ebb.zip
Make CSE convert instructions to OP_NOP
Instead of using the "convert_load_insn()" that converts them to OP_LNOP's, which ends up confusing instruction printout horribly.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cse.c b/cse.c
index b5ae172..6a55234 100644
--- a/cse.c
+++ b/cse.c
@@ -223,8 +223,8 @@ static void sort_instruction_list(struct instruction_list **list)
static struct instruction * cse_one_instruction(struct instruction *insn, struct instruction *def)
{
- /* We re-use the "convert_load_insn()" function. Does the same thing */
- convert_load_insn(insn, def->target);
+ convert_instruction_target(insn, def->target);
+ insn->opcode = OP_NOP;
return def;
}