[all-commits] [llvm/llvm-project] 56d228: [SimplifyCFG] Update passingValueIsAlwaysUndefined...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Tue Feb 23 17:41:15 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56d228a14e3631de157ae98dd61d21193e4502d5
      https://github.com/llvm/llvm-project/commit/56d228a14e3631de157ae98dd61d21193e4502d5
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/UnreachableEliminate.ll

  Log Message:
  -----------
  [SimplifyCFG] Update passingValueIsAlwaysUndefined to check more attributes

This is a simple patch to update SimplifyCFG's passingValueIsAlwaysUndefined to inspect more attributes.

A new function `CallBase::isPassingUndefUB` checks attributes that imply noundef.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D97244




More information about the All-commits mailing list