[all-commits] [llvm/llvm-project] a11489: [MachineCSE][NFC]: Refactor and comment on prevent...

Michael Kitzan via All-commits all-commits at lists.llvm.org
Wed May 5 14:31:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a11489ae3e36063c64921439cbab89d1f3280f4a
      https://github.com/llvm/llvm-project/commit/a11489ae3e36063c64921439cbab89d1f3280f4a
  Author: Michael Kitzan <mkitzan at apple.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/CodeGen/MachineCSE.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/no-cse-nonlocal-convergent-instrs.mir

  Log Message:
  -----------
  [MachineCSE][NFC]: Refactor and comment on preventing CSE for isConvergent instrs

- Move the code preventing CSE of `isConvergent` instrs into
  `ProcessBlockCSE` (from `isProfitableToCSE`)
- Add comments explaining why `isConvergent` is used to prevent
  CSE of non-local instrs in MachineCSE and the new test




More information about the All-commits mailing list