[LLVMdev] inconsistent wording in the LangRef regarding "shl nsw"

Sanjoy Das sanjoy at playingwithpointers.com
Mon Apr 6 11:26:12 PDT 2015


> I wouldn't be surprised if InstSimplify were relying on (1) to implement
> some of its optimizations:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InstructionSimplify.cpp?revision=233938&view=markup#l2298

Yup!  It looks like LLVM really implements (1) and (2) is just a
misleading anecdote.  So I'll change my vote from "remove (1)" to
"remove (2)".  :)

-- Sanjoy



More information about the llvm-dev mailing list