[llvm] dc6a5e0 - [VE] Fix allowsMisalignedMemoryAccesses after D96097

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 20:46:25 PST 2021


Author: Fangrui Song
Date: 2021-02-04T20:46:18-08:00
New Revision: dc6a5e070d1b05cd8ddea8294a8dbb6203fada4e

URL: https://github.com/llvm/llvm-project/commit/dc6a5e070d1b05cd8ddea8294a8dbb6203fada4e
DIFF: https://github.com/llvm/llvm-project/commit/dc6a5e070d1b05cd8ddea8294a8dbb6203fada4e.diff

LOG: [VE] Fix allowsMisalignedMemoryAccesses after D96097

Added: 
    

Modified: 
    llvm/lib/Target/VE/VEISelLowering.cpp
    llvm/lib/Target/VE/VEISelLowering.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp
index f1ed22069bd0..2f65ccd62f9f 100644
--- a/llvm/lib/Target/VE/VEISelLowering.cpp
+++ b/llvm/lib/Target/VE/VEISelLowering.cpp
@@ -837,7 +837,7 @@ bool VETargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT,
 /// alignment error (trap) on the target machine.
 bool VETargetLowering::allowsMisalignedMemoryAccesses(EVT VT,
                                                       unsigned AddrSpace,
-                                                      unsigned Align,
+                                                      Align A,
                                                       MachineMemOperand::Flags,
                                                       bool *Fast) const {
   if (Fast) {

diff  --git a/llvm/lib/Target/VE/VEISelLowering.h b/llvm/lib/Target/VE/VEISelLowering.h
index a6e1bf396035..1191bb995ae7 100644
--- a/llvm/lib/Target/VE/VEISelLowering.h
+++ b/llvm/lib/Target/VE/VEISelLowering.h
@@ -183,7 +183,7 @@ class VETargetLowering : public TargetLowering {
                     bool ForCodeSize) const override;
   /// Returns true if the target allows unaligned memory accesses of the
   /// specified type.
-  bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, unsigned Align,
+  bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, Align A,
                                       MachineMemOperand::Flags Flags,
                                       bool *Fast) const override;
 


        


More information about the llvm-commits mailing list