[all-commits] [llvm/llvm-project] 5d0308: [TargetLowering] Add i1 condition for bit comparis...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Tue Oct 27 05:22:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d0308009284a0c8b75fb683eaba89c2e0c677f6
      https://github.com/llvm/llvm-project/commit/5d0308009284a0c8b75fb683eaba89c2e0c677f6
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2020-10-27 (Tue, 27 Oct 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/NVPTX/pow2_mask_cmp.ll

  Log Message:
  -----------
  [TargetLowering] Add i1 condition for bit comparison fold

For i1 types, boolean false is represented identically regardless of
the boolean content, so we can allow optimizations that otherwise
would not be correct for booleans with false represented as a negative
one.

Patch by Erik Hogeman.

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




More information about the All-commits mailing list