[all-commits] [llvm/llvm-project] 106151: [X86PreAMXConfig] Use IRBuilder to insert instruct...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 22 08:29:05 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 106151100867041f705a0cdf25dfe1f732b28443
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86PreAMXConfig.cpp
    M llvm/test/CodeGen/X86/AMX/amx-configO2toO0-precfg.ll

  Log Message:
  [X86PreAMXConfig] Use IRBuilder to insert instructions (NFC)

Use an IRBuilder to insert instructions in preWriteTileCfg().
While here, also remove some unnecessary bool return values.

There are some test changes because the IRBuilder folds
"trunc i16 8 to i8" to "i8 8", and that has knock-on effects on
instruction naming.

I ran into this when converting tests to opaque pointers and
noticed that this pass introduces unnecessary "bitcast ptr to ptr"

More information about the All-commits mailing list