[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-07-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 --- Comment #8 from Martin Liška --- So what happens, pass_strip_predict_hints is called as last pass_all_early_optimizations pass. That's called for first function. Then the second one goes through einline pass, but in this time the first one

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-07-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 Martin Liška changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from Martin

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-07-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 --- Comment #6 from Jonathan Wakely --- Using macros is not an acceptable solution for idiomatic C++.

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-07-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 Martin Liška changed: What|Removed |Added Priority|P3 |P4 Status|ASSIGNED

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-05-16 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 --- Comment #4 from Jan Hubicka --- > I believe inlining is happening too late for it to have an effect - we are > early inlining a body which has the __builtin_expect replaced by nothing. > > Iff the expected outcome is "constant" a new

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-05-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 Martin Liška changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-05-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/85799] __builin_expect doesn't propagate through inlined functions

2018-05-15 Thread redbeard0531 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85799 --- Comment #1 from Mathias Stearn --- LLVM bug: https://bugs.llvm.org/show_bug.cgi?id=37476