diff options
author | 2004-11-23 15:50:37 -0700 | |
---|---|---|
committer | 2005-04-07 21:04:37 -0700 | |
commit | 29cc9c0d4c96f215061031c6c5e4331feec75ebb (patch) | |
tree | 58584bfff59c8184b9474aa9446ab1c0439d177b /cse.c | |
parent | Fix cse.c dependencies. (diff) | |
download | sparse-29cc9c0d4c96f215061031c6c5e4331feec75ebb.tar.gz sparse-29cc9c0d4c96f215061031c6c5e4331feec75ebb.tar.bz2 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |