Displaying 3 results from an estimated 3 matches for "id184".
Did you mean:
id14
2016 Dec 19
0
opt -instcombine interesting behavior
> %reg = alloca i32, i32 0
Allocating 0 bytes is legal but it's an undefined behavior, please refer:
http://llvm.org/docs/LangRef.html#id184
You need to correct allocation to get the desired output, i.e.:
> %reg = alloca i32, i32 1
Regards,
Ashutosh
> -----Original Message-----
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of
> Stephan Plöger via llvm-dev
> Sent: Monday, December 19, 2016 10:...
2016 Dec 19
1
opt -instcombine interesting behavior
> On Dec 19, 2016, at 9:51 AM, Nema, Ashutosh via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>> %reg = alloca i32, i32 0
> Allocating 0 bytes is legal but it's an undefined behavior, please refer:
> http://llvm.org/docs/LangRef.html#id184 <http://llvm.org/docs/LangRef.html#id184>
Nit: I believe that when LangRef says “the result is undefined”, it does not mean “undefined behavior”.
See http://llvm.org/docs/LangRef.html#undefined-values <http://llvm.org/docs/LangRef.html#undefined-values> for more details.
>
> Yo...
2016 Dec 19
3
opt -instcombine interesting behavior
Hi all,
I've been playing around with the llvm optimizer and stumbled upon an
interesting behavior with respect
to the "instcombine" option. I tried to optimize the following small
program (see also attachment small.ll)
(only with "instcombine"):
clang -v
clang version 4.0.0 (trunk 288238)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin