diff options
| author | Philip Reames <listmail@philipreames.com> | 2019-06-25 17:29:18 +0000 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2019-06-25 17:29:18 +0000 |
| commit | be0dedb2e134525a9fde84c89f8abb6c453c4e1e (patch) | |
| tree | 681aa8951faae11ad3f94bf46e1159237bda8ae0 /llvm/lib/ProfileData/InstrProfReader.cpp | |
| parent | 99a44915275f84ceac5583a89b22a066057fd61a (diff) | |
| download | bcm5719-llvm-be0dedb2e134525a9fde84c89f8abb6c453c4e1e.tar.gz bcm5719-llvm-be0dedb2e134525a9fde84c89f8abb6c453c4e1e.zip | |
[Peephole] Allow folding loads into instructions w/multiple uses (such as test64rr)
Peephole opt has a one use limitation which appears to be accidental. The function being used was incorrectly documented as returning whether the def had one *user*, but instead returned true only when there was one *use*. Add a corresponding hasOneNonDbgUser helper, and adjust peephole-opt to use the appropriate one.
All of the actual folding code handles multiple uses within a single instruction. That codepath is well exercised through instruction selection.
Differential Revision: https://reviews.llvm.org/D63656
llvm-svn: 364336
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
0 files changed, 0 insertions, 0 deletions

