[llvm] [InstCombine] Don't consider aligned_alloc removable if icmp uses result (PR #69474)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 09:55:30 PDT 2023
nikic wrote:
I don't think you can bail out for all aligned allocations here. For example, Rust always uses aligned allocations (via `__rust_alloc`) and will always pass a valid alignment, so I don't think we need to consider that failure mode there.
This should probably be hardcoded to `aligned_alloc` in particular.
https://github.com/llvm/llvm-project/pull/69474
More information about the llvm-commits
mailing list