[PATCH] D97837: [InstCombine] Remove gc.relocate duplicates
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 00:27:03 PST 2021
skatkov created this revision.
skatkov added reviewers: reames, dantrushin.
Herald added subscribers: dexonsmith, hiraditya.
skatkov requested review of this revision.
Herald added a project: LLVM.
If there are two relocation tied to the same token and both
base and derived indices are the same then relocations are the same.
In this case we can drop one relocation and use another.
https://reviews.llvm.org/D97837
Files:
llvm/include/llvm/IR/Statepoint.h
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/statepoint-cleanup.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97837.327693.patch
Type: text/x-patch
Size: 7412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210303/5d20bd62/attachment.bin>
More information about the llvm-commits
mailing list