aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-23 16:00:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:38 -0700
commit3c6c27fe15154293724fb640cf7de166a0e8677d (patch)
tree4a5534df074a7824f813b0ab57070e2d32a21512 /cse.c
parent29cc9c0d4c96f215061031c6c5e4331feec75ebb (diff)
downloadsparse-3c6c27fe15154293724fb640cf7de166a0e8677d.tar.gz
sparse-3c6c27fe15154293724fb640cf7de166a0e8677d.tar.xz
sparse-3c6c27fe15154293724fb640cf7de166a0e8677d.zip
Make the "cse nop" a bit more informative
Show the source that the thing was replaced with.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cse.c b/cse.c
index 6a55234..f7d27ff 100644
--- a/cse.c
+++ b/cse.c
@@ -225,6 +225,7 @@ static struct instruction * cse_one_instruction(struct instruction *insn, struct
{
convert_instruction_target(insn, def->target);
insn->opcode = OP_NOP;
+ insn->src1 = def->target;
return def;
}