summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLParser.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-24 18:40:25 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-24 18:40:25 +0000
commit2f9c6dafe32c2a172630aff9ee7f2dde8528b9b3 (patch)
tree2a54f43df1d0031ed10fdd05e1726742c810fe5f /llvm/lib/Support/YAMLParser.cpp
parent1a0128faaa78da448edd8a4f2fe48cd394c1a838 (diff)
downloadbcm5719-llvm-2f9c6dafe32c2a172630aff9ee7f2dde8528b9b3.tar.gz
bcm5719-llvm-2f9c6dafe32c2a172630aff9ee7f2dde8528b9b3.zip
[InstCombine] Merge together the SimplifyDemandedUseBits implementations for ZExt and Trunc. NFC
While there avoid resizing the DemandedMask twice. Make a copy into a separate variable instead. This potentially removes an allocation on large bit widths. With the use of the zextOrTrunc methods on APInt and KnownBits these can be made almost source identical. The only difference is the zero of the upper bits for ZExt. This is similar to how its done in computeKnownBits in ValueTracking. llvm-svn: 303791
Diffstat (limited to 'llvm/lib/Support/YAMLParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud