[Attributor] Reuse existing logic to avoid duplication
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 28 Jan 2020 15:46:15 +0000 (09:46 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 29 Jan 2020 05:45:59 +0000 (23:45 -0600)
commitea5fabe60c78e108bc33bda088f0ddd44d0c60cb
tree4c3a889c0ed35c8c5245027f6f0bde01cfffdc89
parent224085409d0276c3b8a6760f9f6222a7ec09cb21
[Attributor] Reuse existing logic to avoid duplication

There was a TODO in AAValueConstantRangeArgument to reuse
AAArgumentFromCallSiteArguments. We now do this by allowing new States
to be build from the bestState.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp