[all-commits] [llvm/llvm-project] 8002fa: [LangRef] Remove incorrect vector alignment rules
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Tue Dec 14 06:45:22 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8002fa67603b4e2fa7384bb0bbad2a649252271f
https://github.com/llvm/llvm-project/commit/8002fa67603b4e2fa7384bb0bbad2a649252271f
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2021-12-14 (Tue, 14 Dec 2021)
Changed paths:
M llvm/docs/LangRef.rst
M llvm/unittests/IR/DataLayoutTest.cpp
Log Message:
-----------
[LangRef] Remove incorrect vector alignment rules
The LangRef incorrectly says that if no exact match is found when
seeking alignment for a vector type, the largest vector type smaller
than the sought-after vector type. This is incorrect as vector types
require an exact match, else they fall back to reporting the natural
alignment.
The corrected rule was not added in its place, as rules for other types
(e.g., floating-point types) aren't documented.
A unit test was added to demonstrate this.
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D112463
More information about the All-commits
mailing list