aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-12 18:18:08 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-04-12 18:18:08 +0000
commit7671fc71f62a7387c06742c569fe17608796e8f2 (patch)
treec219b1b1ed382fe7fe62a2470cbbffe205b89b9a /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent7a60cd38af5563ebe4efa6f1544dca5a5ebebbee (diff)
downloadllvm-7671fc71f62a7387c06742c569fe17608796e8f2.zip
llvm-7671fc71f62a7387c06742c569fe17608796e8f2.tar.gz
llvm-7671fc71f62a7387c06742c569fe17608796e8f2.tar.bz2
[KnownBits] Add computeForAddCarry()
This is for D60460. computeForAddSub() essentially already supports carries because it has to deal with subtractions. This revision extracts a lower-level computeForAddCarry() function, which allows computing the known bits for add (carry known zero), sub (carry known one) and addcarry (carry unknown). As we don't seem to have any yet, I've added a unit test file for KnownBits and exhaustive tests for the new computeForAddCarry() functionality, as well the existing computeForAddSub() function. Differential Revision: https://reviews.llvm.org/D60522 llvm-svn: 358297
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions