[all-commits] [llvm/llvm-project] 8d5209: [X86] Use indirect addressing for high 2GB of x32 ...
Harald van Dijk via All-commits
all-commits at lists.llvm.org
Wed Oct 11 11:21:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d520973b02b56fe75b9f916601dc1287a4cb17d
https://github.com/llvm/llvm-project/commit/8d520973b02b56fe75b9f916601dc1287a4cb17d
Author: Harald van Dijk <harald at gigawatt.nl>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
M llvm/test/CodeGen/X86/large-constants-x32.ll
Log Message:
-----------
[X86] Use indirect addressing for high 2GB of x32 address space
Instructions that take immediate addresses sign-extend their operands, so cannot be used when we actually need zero extension. Use indirect addressing to avoid problems.
The functions in the test are a modified versions of the functions by the same names in large-constants.ll, with i64 types changed to i32.
Fixes #55061
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D124406
More information about the All-commits
mailing list