Use the last 7 bits to represent the discriminator to fit it in 1 byte ULEB128 (NFC).
authorDehao Chen <dehao@google.com>
Tue, 8 Nov 2016 16:32:32 +0000 (16:32 +0000)
committerDehao Chen <dehao@google.com>
Tue, 8 Nov 2016 16:32:32 +0000 (16:32 +0000)
commit2ca9be330b9b645c8bae9c5508799eaa69870aa1
tree9898e3ccc66af17990e271c709f4b71768e9b674
parent825e538559266a29fb94a46885e1d448fb381e3b
Use the last 7 bits to represent the discriminator to fit it in 1 byte ULEB128 (NFC).

From experiments, discriminator is rarely greater than 127. Here we enforce it to be no greater than 127 so that it will always fit in 1 byte.

llvm-svn: 286245
llvm/lib/Transforms/Utils/AddDiscriminators.cpp