[all-commits] [llvm/llvm-project] 09e8c0: [InstSimplify] icmp poison, X -> poison

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Sat Jun 19 23:41:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09e8c0d5aaef9f1157460a3ae6ae77c7a2f0966f
      https://github.com/llvm/llvm-project/commit/09e8c0d5aaef9f1157460a3ae6ae77c7a2f0966f
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/getelementptr.ll
    M llvm/test/Transforms/InstCombine/udiv-simplify.ll
    M llvm/test/Transforms/InstSimplify/icmp.ll

  Log Message:
  -----------
  [InstSimplify] icmp poison, X -> poison

This adds a simple transformation from icmp with poison constant to poison.
Comparing poison with something else is poison, so this is okay.

https://alive2.llvm.org/ce/z/e8iReb
https://alive2.llvm.org/ce/z/q4MurY




More information about the All-commits mailing list