summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2021-05-14 16:53:52 -0700
committerJessica Paquette <jpaquette@apple.com>2021-05-18 09:26:41 -0700
commit892497c806306a4b7185ead16d60b0ebcca0a304 (patch)
tree140739795bb1bd6db123f2de36bfbf57cdb1256e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8998a8aa97f81c758403615ec897ce79c1ccdcad (diff)
[GlobalISel] Simplify G_ICMP to true/false when the result is known
Use existing KnownBits helpers from KnownBits.h to simplify G_ICMPs. E.g. x == x -> true x != x -> false load(x) > 1 -> true (when the load is known to be greater than 1) And so on. Differential Revision: https://reviews.llvm.org/D102542
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions