[all-commits] [llvm/llvm-project] 4251aa: [IRBuilder] Migrate most casts to folding API

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Sep 29 03:40:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4251aa7a6f78ab063cad6c2e0aeadd76a660efba
      https://github.com/llvm/llvm-project/commit/4251aa7a6f78ab063cad6c2e0aeadd76a660efba
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-09-29 (Fri, 29 Sep 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/InstSimplifyFolder.h
    M llvm/include/llvm/Analysis/TargetFolder.h
    M llvm/include/llvm/IR/ConstantFolder.h
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/IRBuilderFolder.h
    M llvm/include/llvm/IR/NoFolder.h
    M llvm/test/CodeGen/AMDGPU/promote-alloca-loadstores.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-pointer-array.ll

  Log Message:
  -----------
  [IRBuilder] Migrate most casts to folding API

Migrate creation of most casts to use the FoldXYZ rather than
CreateXYZ style APIs. This means that InstSimplifyFolder now
works for these, which is what accounts for the AMDGPU test changes.




More information about the All-commits mailing list