[PATCH] D98401: [CodeGen] Fix backward copy propagation with -g
yshui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 10:55:06 PST 2021
yshui added a comment.
I think it might be valuable to extend this to all cases like this:
$reg1 = ...
USE $reg1
... // No writes to $reg1, and no reads of or writes to $reg2
$reg2 = COPY killed $reg
Which can be rewritten to
$reg2 = ...
USE $reg2
...
Does this idea make sense? I am currently working on a patch that does this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98401/new/
https://reviews.llvm.org/D98401
More information about the llvm-commits
mailing list