[all-commits] [llvm/llvm-project] 3715c9: [InstSimplify] Fold nnan/ninf violation to poison

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Jan 3 13:10:58 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3715c99be9dcde1421f2365a59ab2bc433993d7c
      https://github.com/llvm/llvm-project/commit/3715c99be9dcde1421f2365a59ab2bc433993d7c
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/fp-nan.ll
    M llvm/test/Transforms/InstSimplify/fp-undef-poison.ll

  Log Message:
  -----------
  [InstSimplify] Fold nnan/ninf violation to poison

As the comment already indicates, performing an operation with
nnan/ninf flags on a nan/inf or undef results in poison. Now that
we have a proper poison value, we no longer need to relax it to
undef.




More information about the All-commits mailing list