This should be a typo in emitConstantSizeRepmov. Both its caller and
callee store the alignment in a 64-bit variables, no reason to truncate
it to 32-bit. It results in alignment turns into 0 when larger than
0x100000000.
Fixes #61348
Paths
| Differential D145863
[X86] Use llvm::Align for passing the alignment ClosedPublic Authored by pengfei on Mar 12 2023, 1:28 AM.
Details
Summary This should be a typo in emitConstantSizeRepmov. Both its caller and Fixes #61348
Diff Detail
Event Timeline
pengfei retitled this revision from [X86][NFC] Use uint64_t for passing the alignment to [X86][NFC] Use llvm::Align for passing the alignment.Mar 13 2023, 1:24 AM pengfei marked an inline comment as done. Comment Actions LGTM - but please add the PR61348 test case as well
This revision is now accepted and ready to land.Mar 13 2023, 2:35 AM pengfei marked an inline comment as done. Comment ActionsConvert one more uint64_t Align into Align Alignment.
I hesitate to add PR61348 test case for 3 reasons,
Let me know if you still think we should add the test case. Comment Actions We have enough examples of tests with `REQUIRES: asserts``` in llvm-project\llvm\test\CodeGen\X86 that I don't think its unusual pengfei retitled this revision from [X86][NFC] Use llvm::Align for passing the alignment to [X86] Use llvm::Align for passing the alignment.Mar 13 2023, 7:02 AM This revision was landed with ongoing or failed builds.Mar 13 2023, 9:06 AM Closed by commit rG7ff0b9735dc5: [X86] Use llvm::Align for passing the alignment (authored by pengfei). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 504694 llvm/lib/Target/X86/X86SelectionDAGInfo.cpp
llvm/test/CodeGen/X86/pr61348.ll
|
Probably worth converting this to Align Alignment as well?