-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Infinite loop optimized out by inlining? #42009
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This crate
when compiled without optimization (
rustc --crate-type rlib --emit asm), producesbut when compiled with optimization on (
rustc --crate-type rlib --emit asm -O), no assembly instructions at all are emitted fortest_noret:I expected to get something like
Identical behavior observed with
rustc 1.17.0 (56124baa9 2017-04-24)andrustc 1.19.0-nightly (386b0b9d3 2017-05-14).