[all-commits] [llvm/llvm-project] f1200c: [DAG] visitEXTRACT_VECTOR_ELT - constant fold lega...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Dec 7 06:56:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1200ca7ac88c6ff9aa4fe3b560cf326dc3d4e25
      https://github.com/llvm/llvm-project/commit/f1200ca7ac88c6ff9aa4fe3b560cf326dc3d4e25
  Author: Simon Pilgrim <RKSimon at users.noreply.github.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/aarch64-neon-vector-insert-uaddlv.ll
    M llvm/test/CodeGen/AArch64/arm64-promote-const-complex-initializers.ll
    M llvm/test/CodeGen/X86/2011-10-19-widen_vselect.ll
    M llvm/test/CodeGen/X86/2012-07-10-extload64.ll
    M llvm/test/CodeGen/X86/fold-load-vec.ll
    M llvm/test/CodeGen/X86/half.ll
    M llvm/test/CodeGen/X86/nontemporal-3.ll
    M llvm/test/CodeGen/X86/pr41619.ll
    M llvm/test/CodeGen/X86/vec_zero_cse.ll
    M llvm/test/CodeGen/X86/vector-shuffle-combining.ll

  Log Message:
  -----------
  [DAG] visitEXTRACT_VECTOR_ELT - constant fold legal fp imm values (#74304)

If we're extracting a constant floating point value, and the constant is a legal fp imm value, then replace the extraction with a fp constant.




More information about the All-commits mailing list