summaryrefslogtreecommitdiffstats
path: root/llvm/lib/FuzzMutate/OpDescriptor.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-06-25 17:29:18 +0000
committerPhilip Reames <listmail@philipreames.com>2019-06-25 17:29:18 +0000
commitbe0dedb2e134525a9fde84c89f8abb6c453c4e1e (patch)
tree681aa8951faae11ad3f94bf46e1159237bda8ae0 /llvm/lib/FuzzMutate/OpDescriptor.cpp
parent99a44915275f84ceac5583a89b22a066057fd61a (diff)
downloadbcm5719-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/FuzzMutate/OpDescriptor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud