[Local] Clean up enforceKnownAlignment() (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 19 Sep 2020 20:26:53 +0000 (22:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 19 Sep 2020 20:29:40 +0000 (22:29 +0200)
commitf4e554180962aa6bc93678898b6933ea712bde50
treead89d59773f6278bfb8a06a9a6ddc5a7b047a539
parentcba45514fb420ed45c721146d16ec9d9bd7f7f98
[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().
llvm/lib/Transforms/Utils/Local.cpp