Addresses concern: https://reviews.llvm.org/rG09cdddea0c4d284c2c22f5dfade40a60850c5ea7
There was a copy/paste mistake in the code. Updated code and test ref.
Paths
| Differential D134135
[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 TimelineThis 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 Closed by commit rGf52dd920d400: [InstCombine] Fix bug when folding x + (x | -x) to x & (x - 1) (authored by marcauberer, committed by spatel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 461083 llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/add_or_sub.ll
|