[all-commits] [llvm/llvm-project] c953a8: [TargetLowering] Use getBoolConstant instead of as...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jan 22 00:27:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c953a8334707951d172e8061c8dc9054eb0c5c3f
      https://github.com/llvm/llvm-project/commit/c953a8334707951d172e8061c8dc9054eb0c5c3f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

  Log Message:
  -----------
  [TargetLowering] Use getBoolConstant instead of assuming zero or one for boolean contents.

Noticed while I was touching other nearby code. I don't have a
test where this matters because the targets I work on
use zero or one boolean contents. And the tests cases I've seen
this fire on happen before type legalization where the result type
is MVT::i1 so the distinction doesn't matter.




More information about the All-commits mailing list