[all-commits] [llvm/llvm-project] 37c0aa: [SelectionDAG] Make getPreferredExtendForValue tak...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 21 12:15:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37c0aacd71871658786435c5d6b6273784d26f72
      https://github.com/llvm/llvm-project/commit/37c0aacd71871658786435c5d6b6273784d26f72
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

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

  Log Message:
  -----------
  [SelectionDAG] Make getPreferredExtendForValue take a Instruction * instead of Value *.

This is only called for instructions and the caller is already holding
an Instruction *. This makes the code more explicit and makes it
obvious the code doesn't make decisions about constants.




More information about the All-commits mailing list