This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Only enable `foldCSELOfCSEl` DAG combine when x != y
ClosedPublic

Authored by bcl5980 on Jan 10 2023, 12:28 AM.

Diff Detail

Event Timeline

bcl5980 created this revision.Jan 10 2023, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 12:28 AM
bcl5980 requested review of this revision.Jan 10 2023, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 12:28 AM
bcl5980 edited the summary of this revision. (Show Details)Jan 10 2023, 12:28 AM
dmgreen accepted this revision.Jan 10 2023, 2:09 PM

LGTM Thanks

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
20024

These could be combined into the "Where x and y are constants" line.

20055–20058

This comment could be formatted to flow better.

llvm/test/CodeGen/AArch64/pr59902.ll
5

this -> This

This revision is now accepted and ready to land.Jan 10 2023, 2:09 PM
bcl5980 updated this revision to Diff 488058.Jan 10 2023, 6:45 PM

address comments.

This revision was landed with ongoing or failed builds.Jan 10 2023, 6:46 PM
This revision was automatically updated to reflect the committed changes.