summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-09-06 09:29:42 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-09-06 09:29:42 +0000
commit6afebe1d30721b3383d9808012cafb033eb70714 (patch)
tree292b4ef91297cf636213fa586e79a1918cfb9b24 /llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
parent1a10ae0def03d6083f8cc7f512201a76aa8324ef (diff)
downloadbcm5719-llvm-6afebe1d30721b3383d9808012cafb033eb70714.tar.gz
bcm5719-llvm-6afebe1d30721b3383d9808012cafb033eb70714.zip
[NFC] Simplify inner structure of InstructionPrecedenceTracking
Currently it has a set KnownBlocks that marks blocks as having cached answers and a map FirstSpecialInsts that maps these blocks to first special instructions in them. The value in the map is always non-null, and for blocks that are known to have no special instructions the map does not have an instance. This patch removes KnownBlocks as obsolete. Instead, for blocks that are known to have no special instructions, we just put a nullptr value. This makes the code much easier to read. llvm-svn: 341531
Diffstat (limited to 'llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud