[all-commits] [llvm/llvm-project] 111322: [VectorCombine] Account for IRBuilder simplificati...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jul 7 04:41:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1113224f9444f5c2cf69784cd3c110b8dd560897
      https://github.com/llvm/llvm-project/commit/1113224f9444f5c2cf69784cd3c110b8dd560897
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/X86/extract-binop.ll

  Log Message:
  -----------
  [VectorCombine] Account for IRBuilder simplification in translateExt.

After https://github.com/llvm/llvm-project/pull/146350,
CreateExtractElement may return a folded value and not create an
ExtractElement instruction.

Replace cast with dyn_cast. Note that the function returns nullptr
already earlier if the extract may be constant folded.

Fixes https://github.com/llvm/llvm-project/issues/147218



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list