[all-commits] [llvm/llvm-project] 6b3dc9: [X86][GlobalISel] Replace a misuse of SUBREG_TO_RE...

topperc via All-commits all-commits at lists.llvm.org
Tue Aug 11 23:51:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b3dc96e599a80005c4465ebedd1208e7f882c81
      https://github.com/llvm/llvm-project/commit/6b3dc96e599a80005c4465ebedd1208e7f882c81
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86InstructionSelector.cpp
    M llvm/test/CodeGen/X86/GlobalISel/select-cmp.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-ext-x86-64.mir

  Log Message:
  -----------
  [X86][GlobalISel] Replace a misuse of SUBREG_TO_REG with INSERT_SUBREG.

SUBREG_TO_REG is supposed to be used when we know the producing
instruction already zeroed the bits we're extending. But that's
not the case here. So INSERT_SUBREG with an IMPLICIT_DEF is the
correct thing to use.




More information about the All-commits mailing list