[llvm] r371293 - Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment"

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 01:38:46 PDT 2019


Author: sylvestre
Date: Sat Sep  7 01:38:46 2019
New Revision: 371293

URL: http://llvm.org/viewvc/llvm-project?rev=371293&view=rev
Log:
Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment"
on AVR to avoid a breakage.
See r371200 / https://reviews.llvm.org/D67229


Modified:
    llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp

Modified: llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp?rev=371293&r1=371292&r2=371293&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp Sat Sep  7 01:38:46 2019
@@ -236,7 +236,7 @@ AVRTargetLowering::AVRTargetLowering(con
   setLibcallName(RTLIB::SIN_F32, "sin");
   setLibcallName(RTLIB::COS_F32, "cos");
 
-  setMinFunctionLogAlignment(1);
+  setMinFunctionAlignment(llvm::Align(2));
   setMinimumJumpTableEntries(UINT_MAX);
 }
 




More information about the llvm-commits mailing list