[all-commits] [llvm/llvm-project] 85e4ee: [SystemZ] Avoid type legalization on structs
Josh Stone via All-commits
all-commits at lists.llvm.org
Mon Aug 7 18:03:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85e4ee15d32ae0344755d11d4ca90a15a6e005cd
https://github.com/llvm/llvm-project/commit/85e4ee15d32ae0344755d11d4ca90a15a6e005cd
Author: Josh Stone <jistone at redhat.com>
Date: 2023-08-07 (Mon, 07 Aug 2023)
Changed paths:
M llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
A llvm/test/Analysis/CostModel/SystemZ/struct-cost-crash.ll
Log Message:
-----------
[SystemZ] Avoid type legalization on structs
In SystemZTTIImpl::getMemoryOpCost, the call to getNumberOfParts will
run type legalization, which can't handle structs. So before that, we
check for an unknown value type and forward to BaseT, just like many
other targets do in this situation.
https://bugzilla.redhat.com/show_bug.cgi?id=2224885
Reviewed By: uweigand
Differential Revision: https://reviews.llvm.org/D156379
More information about the All-commits
mailing list