This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Don't write to WZR in non-flag-setting G_BRCOND case
ClosedPublic

Authored by paquette on Nov 2 2020, 9:51 AM.

Details

Summary

We are avoiding writing to WZR just about everywhere else.

Also update the code to use MachineIRBuilder for the sake of consistency.

We also didn't have a GlobalISel testcase for this path, so add a simple one now.

Diff Detail

Event Timeline

paquette created this revision.Nov 2 2020, 9:51 AM
paquette requested review of this revision.Nov 2 2020, 9:51 AM
aemerson accepted this revision.Nov 2 2020, 1:45 PM
This revision is now accepted and ready to land.Nov 2 2020, 1:45 PM