[Attributor] Handle calls in AAValueConstantRange properly
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 20 Mar 2020 06:37:27 +0000 (01:37 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 23 Mar 2020 15:45:24 +0000 (10:45 -0500)
commit68fed2706743ffc921221caea6dfe38b17aaf73b
treecb09eb5613270b02a5d5b2b2dacb5ccc30a5d62e
parent54ec9b54f6bb7d580447570fb91451f663113d35
[Attributor] Handle calls in AAValueConstantRange properly

We did handle calls that were operands of certain instructions but not
standalone calls we visit via indirection, e.g., selects.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/range.ll