[all-commits] [llvm/llvm-project] f4e554: [Local] Clean up enforceKnownAlignment() (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Sep 19 13:29:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4e554180962aa6bc93678898b6933ea712bde50
      https://github.com/llvm/llvm-project/commit/f4e554180962aa6bc93678898b6933ea712bde50
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-09-19 (Sat, 19 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp

  Log Message:
  -----------
  [Local] Clean up enforceKnownAlignment() (NFC)

I want to export this function, and the current API was a bit
weird: It took an additional Alignment argument that didn't really
have anything to do with what the function does. Drop it, and
perform a max at the callsite.

Also rename it to tryEnforceAlignment().




More information about the All-commits mailing list