about summary refs log tree commit diff
path: root/src/test/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-20/+0
2022-09-01Simplify MIR opt testsJakob Degen-1/+1
This commit removes many cases of MIR opt tests emitting `.diff`s for more than one pass. These tests cannot be `unit-test`s, and so they are easy to break, and they also provide little value due to having excessively strong opinions over *how* a piece of code should be optimized. Where reasonable, we instead add separate test files that only emit the `PreCodegen.after` MIR for code where we want to track what the result of the net result of the optimization pipeline's output is.
2022-08-02Avoid invalidating the CFG in MirPatch.Jakob Degen-4/+0
As a part of this change, we adjust MirPatch to not needlessly create unnecessary resume blocks.
2022-07-28bless mir opt testsNilstrieb-6/+6
2022-07-09tweak names and output and blessRalf Jung-1/+1
2020-12-15Always run intrinsics lowering passTomasz Miąsko-0/+4
Move intrinsics lowering pass from the optimization phase (where it would not run if -Zmir-opt-level=0), to the drop lowering phase where it runs unconditionally. The implementation of those intrinsics in code generation and interpreter is unnecessary. Remove it.
2020-11-14Lower intrinsics calls: forget, size_of, unreachable, wrapping_*Tomasz Miąsko-0/+20
This allows constant propagation to evaluate `size_of` and `wrapping_*`, and unreachable propagation to propagate a call to `unreachable`. The lowering is performed as a MIR optimization, rather than during MIR building to preserve the special status of intrinsics with respect to unsafety checks and promotion.