This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Try to commute G_CONSTANT_FOLD_BARRIER LHS operands to RHS.
ClosedPublic

Authored by aemerson on Aug 29 2023, 7:47 AM.

Diff Detail

Event Timeline

aemerson created this revision.Aug 29 2023, 7:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 7:47 AM
aemerson requested review of this revision.Aug 29 2023, 7:47 AM
Pierre-vh accepted this revision.Aug 29 2023, 11:58 PM
Pierre-vh added inline comments.
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
6028–6032
llvm/test/CodeGen/AArch64/GlobalISel/combine-const-fold-barrier-rhs.mir
6

is alignment necessary?

This revision is now accepted and ready to land.Aug 29 2023, 11:58 PM

Please remove all has_value() they have no value. Options have boolean conversion. You may use them in GTest.

This revision was landed with ongoing or failed builds.Aug 30 2023, 8:07 AM
This revision was automatically updated to reflect the committed changes.