This is an archive of the discontinued LLVM Phabricator instance.

[AArch64]Combine BFXIL to ORR with right shift for ISD::OR instruction selection
ClosedPublic

Authored by mingmingl on Nov 4 2022, 2:13 PM.

Details

Summary
  • This extends the existing helper function 'isWorthFoldingIntoOrrWithLeftShift' into 'isWorthFoldingIntoOrrWithShift', and encode right-shift imm (the encoding of left-shift imm is no-op).

Diff Detail

Event Timeline

mingmingl created this revision.Nov 4 2022, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 2:13 PM
mingmingl requested review of this revision.Nov 4 2022, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 2:13 PM
dmgreen accepted this revision.Nov 8 2022, 1:45 AM

LGTM

This revision is now accepted and ready to land.Nov 8 2022, 1:45 AM

thanks! run a post-approval clang-format and going to submit this.

mingmingl updated this revision to Diff 474052.Nov 8 2022, 11:19 AM

run a post-approval 'clang-format'

This revision was landed with ongoing or failed builds.Nov 8 2022, 11:21 AM
This revision was automatically updated to reflect the committed changes.