[PATCH] [x86] fix allowsMisalignedMemoryAccess() implementation

Quentin Colombet qcolombet at apple.com
Tue Jun 30 17:07:35 PDT 2015


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:1802
@@ +1801,3 @@
+  if (Fast) {
+    if (Alignment == 0 || Alignment >= VT.getSizeInBits() / 8)
+      *Fast = true;
----------------
Shouldn't we check the alignment from the data layout?

http://reviews.llvm.org/D10662

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list