[PATCH] D127972: [AsmPrinter] Further restrict expressions supported in global initializers
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 21 03:36:22 PDT 2022
nikic added inline comments.
================
Comment at: llvm/test/CodeGen/X86/ptrtoint-constexpr.ll:12
; CHECK: x:
-; CHECK: .quad ((0+1)&4294967295)*3
+; CHECK: .quad 3
----------------
nhaehnle wrote:
> How is this test change caused by the code change?
For unsupported constant expressions, we perform DataLayout-aware constant folding in attempt to remove the expression, see https://github.com/llvm/llvm-project/blob/4d2eda2bb3156cee63ea486be34b01164b178e10/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp#L2711-L2716.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127972/new/
https://reviews.llvm.org/D127972
More information about the llvm-commits
mailing list