[all-commits] [llvm/llvm-project] 6f07a9: [InstCombine] Erase original add when creating saddo

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Mar 29 09:02:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f07a9e80ab6f3040ae7d8afeaed7f2a207467d2
      https://github.com/llvm/llvm-project/commit/6f07a9e80ab6f3040ae7d8afeaed7f2a207467d2
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-03-29 (Sun, 29 Mar 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

  Log Message:
  -----------
  [InstCombine] Erase original add when creating saddo

Usually when we replaceInstUsesWith() we also return the original
instruction, and InstCombine will take care of erasing it. Here
we don't do that, so we need to manually erase it.

NFC apart from worklist order changes.




More information about the All-commits mailing list