search for: 2t4ru5

Displaying 3 results from an estimated 3 matches for "2t4ru5".

2020 Apr 05
2
Branch is not optimized because of right shift
...don't understand why the right shift was translated to an add with -16. I hope this made some sense. You may ignore the last 2 and focus on the first, i.e. what optimization should have been done but it's not and what we can do about it. A clearer version of the .ll: https://godbolt.org/z/2t4RU5 Best, Stefanos p.s. John I had sent you an e-mail regarding loop rotation some time ago. I'm not sure if it was intentional on your part to be skipped, if so, sorry to bother you. :) But there's the alternative that it was just lost. Στις Κυρ, 5 Απρ 2020 στις 7:12 π.μ., ο/η John Regehr v...
2020 Apr 05
3
Branch is not optimized because of right shift
...ed to an add with -16. > > > > I hope this made some sense. You may ignore the last 2 and focus on the > first, i.e. what optimization > > should have been done but it's not and what we can do about it. > > > > A clearer version of the .ll: https://godbolt.org/z/2t4RU5 > > I think the IR in both of your examples makes things harder for the > compiler than expected from the original C source. > > With the IR in your original example (https://godbolt.org/z/BL-4jL), I > think the problem is that the branch condition is '%0 - 16 < 12’, which...
2020 Apr 05
2
Branch is not optimized because of right shift
Hi everyone, In a twitch chat someone redirected me to an example that is not optimized: https://godbolt.org/z/BL-4jL I included the original source code and this is after -O2. We both thought that the -8 branch could be optimized out. I added a nuw in the subtraction and it actually does it. Any thoughts on why that doesn't happen already? Best, Stefanos Baziotis -------------- next part