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.
Paths
| Differential D90626
[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 TimelineThis revision is now accepted and ready to land.Nov 2 2020, 1:45 PM Closed by commit rGc82f002cea30: [AArch64][GlobalISel] Don't write to WZR in non-flag-setting G_BRCOND case (authored by paquette). · Explain WhyDec 1 2020, 4:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 308814 llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/speculative-hardening-brcond.mir
|