[ConstantRange] Implement binaryXor() using known bits
authorNikita Popov <npopov@redhat.com>
Tue, 17 May 2022 08:02:50 +0000 (10:02 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 17 May 2022 08:05:12 +0000 (10:05 +0200)
commit2db4dc7ec0595dae4b2fb5499da698eb117e2dc7
tree00844d67d8370d56dea8c2a65619521da0a06bce
parent821522d343cd127312fb07b53aa99e22b3aacc0c
[ConstantRange] Implement binaryXor() using known bits

This allows us to compute known high bits. It's not optimal, but
better than nothing.
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp