]> granicus.if.org Git - llvm/commitdiff
Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionA...
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 7 Sep 2019 08:38:46 +0000 (08:38 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 7 Sep 2019 08:38:46 +0000 (08:38 +0000)
on AVR to avoid a breakage.
See r371200 / https://reviews.llvm.org/D67229

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371293 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVRISelLowering.cpp

index 12b08e8ece5febd5b70e5b49ce6822019d00839b..6566f618b955951506f3a4732f5610a6a05fa54d 100644 (file)
@@ -236,7 +236,7 @@ AVRTargetLowering::AVRTargetLowering(const AVRTargetMachine &TM,
   setLibcallName(RTLIB::SIN_F32, "sin");
   setLibcallName(RTLIB::COS_F32, "cos");
 
-  setMinFunctionLogAlignment(1);
+  setMinFunctionAlignment(llvm::Align(2));
   setMinimumJumpTableEntries(UINT_MAX);
 }