[Attributor] Fix the "clamp" operator
authorJohannes Doerfert <jdoerfert@anl.gov>
Tue, 20 Aug 2019 05:57:01 +0000 (05:57 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Tue, 20 Aug 2019 05:57:01 +0000 (05:57 +0000)
commit028b2aa56a627f6175dbe89ed37c2852a884281a
treef2344e8c935f6213234447906301c64332efaf4a
parenta08e139d5074c7ca2b81d780525e958d27d2c8aa
[Attributor] Fix the "clamp" operator

The clamp operator should not take the known of the given state as the
known is potentially based on assumed information. This also adds TODOs
to guide improvements.

llvm-svn: 369327
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp