This is an archive of the discontinued LLVM Phabricator instance.

[KnownBits] Add zext, sext, and trunc methods to KnownBits
ClosedPublic

Authored by craig.topper on May 2 2017, 10:50 PM.

Details

Summary

This patch adds zext, sext, and trunc methods to KnownBits and uses them where possible.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.May 2 2017, 10:50 PM
RKSimon accepted this revision.May 3 2017, 8:27 AM

LGTM

include/llvm/Support/KnownBits.h
30 ↗(On Diff #97548)

Add assertion for equal bitwidths? Might not be worth it as its private.

This revision is now accepted and ready to land.May 3 2017, 8:27 AM
This revision was automatically updated to reflect the committed changes.