OSDN Git Service

[Attributor] Avoid REQUIRED dependences in favor of OPTIONAL ones
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 12 Jan 2020 06:11:56 +0000 (00:11 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 24 Jan 2020 00:42:46 +0000 (18:42 -0600)
commit7ad17e008b0abec9b791f17de2f75f9112510d9d
treec3b7444115461ea01bd68f388d6a938de801bf0e
parent214ed3f676d2a1f0329c8dd4b3a0d4218f2b96cb
[Attributor] Avoid REQUIRED dependences in favor of OPTIONAL ones

When we use information only to short-cut deduction or improve it, we
can use OPTIONAL dependences instead of REQUIRED ones to avoid cascading
pessimistic fixpoints.

We also need to track dependences only when we use assumed information,
e.g., we act on assumed liveness information.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/nocapture-2.ll