This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Fix bug when folding x + (x | -x) to x & (x - 1)
ClosedPublic

Authored by marcauberer on Sep 18 2022, 7:25 AM.

Details

Summary

Addresses concern: https://reviews.llvm.org/rG09cdddea0c4d284c2c22f5dfade40a60850c5ea7

There was a copy/paste mistake in the code. Updated code and test ref.

Diff Detail

Event Timeline

marcauberer created this revision.Sep 18 2022, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2022, 7:25 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
marcauberer requested review of this revision.Sep 18 2022, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2022, 7:25 AM
spatel accepted this revision.Sep 18 2022, 9:14 AM

LGTM

This revision is now accepted and ready to land.Sep 18 2022, 9:14 AM
This revision was landed with ongoing or failed builds.Sep 18 2022, 10:16 AM
This revision was automatically updated to reflect the committed changes.