[all-commits] [llvm/llvm-project] 76ca0d: [ConstantFolding] ConstantFoldScalarCall1 - early-...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Oct 16 03:53:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76ca0d67ab07929dd6d2d34327034bc87ff822a9
      https://github.com/llvm/llvm-project/commit/76ca0d67ab07929dd6d2d34327034bc87ff822a9
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-16 (Sat, 16 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] ConstantFoldScalarCall1 - early-out if getLibFunc fails. NFC.


  Commit: c18cf10a049506534de5efaed0e91e062866532a
      https://github.com/llvm/llvm-project/commit/c18cf10a049506534de5efaed0e91e062866532a
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-16 (Sat, 16 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] Use getValueAPF const ref value where possible. NFC.

Don't copy the value if we can avoid it.


  Commit: c28824179530db3aaa3b76291111b2c8a56face4
      https://github.com/llvm/llvm-project/commit/c28824179530db3aaa3b76291111b2c8a56face4
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-16 (Sat, 16 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] ConstantFoldScalarCall2 - early-out if getLibFunc fails. NFC.


  Commit: a1b43d2bc946966a64f390058e3bf5fc22ee9304
      https://github.com/llvm/llvm-project/commit/a1b43d2bc946966a64f390058e3bf5fc22ee9304
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-16 (Sat, 16 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/LazyValueInfo.cpp

  Log Message:
  -----------
  [LazyValueInfo] getPredicateAt - remove unnecessary null pointer check. NFC.

We already dereference the CxtI pointer several times before reaching the "if(CxtI)", we have no need to check it again.

Fixes a coverity warning.


  Commit: d464a9d476a2620293ff19cf743b8537b94c4a42
      https://github.com/llvm/llvm-project/commit/d464a9d476a2620293ff19cf743b8537b94c4a42
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-16 (Sat, 16 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/LoopCacheAnalysis.cpp

  Log Message:
  -----------
  [Analysis] Replace assert(isa)/dyn_cast with cast. NFC.

cast<> will perform the assertion for us.

Removes a static analysis null dereference warning.


Compare: https://github.com/llvm/llvm-project/compare/d137f1288e2c...d464a9d476a2


More information about the All-commits mailing list