[all-commits] [llvm/llvm-project] c82f00: [AArch64][GlobalISel] Don't write to WZR in non-fl...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Tue Dec 1 16:48:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c82f002cea304be505f14af70dce25ad149ba29f
      https://github.com/llvm/llvm-project/commit/c82f002cea304be505f14af70dce25ad149ba29f
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/speculative-hardening-brcond.mir

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

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.

Differential Revision: https://reviews.llvm.org/D90626




More information about the All-commits mailing list