[all-commits] [llvm/llvm-project] 5fbc3c: [RISCV] Use existing variable intead of calling ge...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jan 30 18:59:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fbc3cda9e25534c2174bdf03a555ccc5a6a8452
      https://github.com/llvm/llvm-project/commit/5fbc3cda9e25534c2174bdf03a555ccc5a6a8452
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-01-30 (Sun, 30 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Use existing variable intead of calling getOperand again. NFCI

This is a slight change because I'm using the ANY_EXTEND result
instead of the original operand, but getNode should constant fold.

While there, add a comment about why the code specifically checks
for a ConstantSDNode.




More information about the All-commits mailing list