[all-commits] [llvm/llvm-project] ca6386: [SPIR-V] Don't change switch condition type in Cod...

Michal Paszkowski via All-commits all-commits at lists.llvm.org
Tue Jun 11 11:09:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca6386073308d3c41647d8fc3e2cf72a77d46c76
      https://github.com/llvm/llvm-project/commit/ca6386073308d3c41647d8fc3e2cf72a77d46c76
  Author: Michal Paszkowski <michal at paszkowski.org>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVISelLowering.h
    A llvm/test/CodeGen/SPIRV/optimizations/switch-condition-type.ll

  Log Message:
  -----------
  [SPIR-V] Don't change switch condition type in CodeGen opts (#94959)

This change makes sure the preferred switch condition int type size
remains the same throughout CodeGen optimizations.

The change fixes running several OpenCL applications with -O2 or higher
opt levels, and fixes Basic/stream/stream_max_stmt_exceed.cpp DPC++ E2E
test with -O2.



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