[all-commits] [llvm/llvm-project] bc6d7e: [InstSimplify] Add test for PR49839 (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Apr 12 08:32:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc6d7ed8a9b9501d5d977a0825629791ee802fd6
      https://github.com/llvm/llvm-project/commit/bc6d7ed8a9b9501d5d977a0825629791ee802fd6
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/phi.ll

  Log Message:
  -----------
  [InstSimplify] Add test for PR49839 (NFC)


  Commit: 1d530b914ef16ca0e920efe9c483ea44a8c62fbb
      https://github.com/llvm/llvm-project/commit/1d530b914ef16ca0e920efe9c483ea44a8c62fbb
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/phi.ll

  Log Message:
  -----------
  [InstSimplify] Don't fold phi of poison and trapping const expr (PR49839)

Folding this case would result in the constant expression being
executed unconditionally, which may introduce a new trap.

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


Compare: https://github.com/llvm/llvm-project/compare/3870b3602552...1d530b914ef1


More information about the All-commits mailing list