[all-commits] [llvm/llvm-project] 7495a2: [Attributor][FIX] Ensure we adjust types properly

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Feb 16 17:46:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7495a2e51bff6303fdb8f6113510012028e2d9bb
      https://github.com/llvm/llvm-project/commit/7495a2e51bff6303fdb8f6113510012028e2d9bb
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/IPConstantProp/openmp_parallel_for.ll
    A llvm/test/Transforms/Attributor/reduced/openmp_opt_constant_type_crash.ll

  Log Message:
  -----------
  [Attributor][FIX] Ensure we adjust types properly

When we simplify loads we need to adjust types (esp. null-values)
properly to avoid inconsinstencies down the line. Add a cast and an
error message.

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




More information about the All-commits mailing list