This is an archive of the discontinued LLVM Phabricator instance.

[X86] Fix two places that appear to misuse peekThroughOneUseBitcasts
ClosedPublic

Authored by craig.topper on Jul 10 2020, 4:52 PM.

Details

Summary

peekThroughOneUseBitcasts checks the use count of the operand of the bitcast. Not the bitcast itself. So I think that means we need to do any outside haseOneUse checks before calling the function not after.

I was working on another patch where I misused the function and did a very quick audit to see if I there were other similar mistakes.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 10 2020, 4:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2020, 4:52 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper edited reviewers, added: RKSimon; removed: llvm-commits.Jul 10 2020, 4:52 PM
RKSimon accepted this revision.Jul 12 2020, 1:49 AM

LGTM - cheers

This revision is now accepted and ready to land.Jul 12 2020, 1:49 AM
This revision was automatically updated to reflect the committed changes.