[PATCH] D76870: [Attributor] Use the proper context instruction in genericValueTraversal
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 10:50:33 PDT 2020
jdoerfert created this revision.
jdoerfert added reviewers: uenoku, sstefan1, baziotis.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.
There was a TODO in genericValueTraversal to provide the context
instruction and due to the lack of it users that wanted one just used
something available. Unfortunately, using a fixed instruction is wrong
in the presence of PHIs so we need to update the context instruction
properly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76870
Files:
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/range.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76870.252900.patch
Type: text/x-patch
Size: 14703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/3277bd0a/attachment.bin>
More information about the llvm-commits
mailing list