]> granicus.if.org Git - llvm/commit
[APInt] Remove support for wrapping from APInt::setBits.
authorCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 07:45:01 +0000 (07:45 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 07:45:01 +0000 (07:45 +0000)
commitf300b51fae4d6f4842c61ee1a566b681efb8da88
treee18388316b06ec32deeaa6247ce9bf544c13d076
parentc07d5e69ae20a54019d99a12493099d2997b46fe
[APInt] Remove support for wrapping from APInt::setBits.

This features isn't used anywhere in tree. It's existence seems to be preventing selfhost builds from inlining any of the setBits methods including setLowBits, setHighBits, and setBitsFrom. This is because the code makes the method recursive.

If anyone needs this feature in the future we could consider adding a setBitsWithWrap method. This way only the calls that need it would pay for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301769 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
unittests/ADT/APIntTest.cpp