search for: createsdiv

Displaying 4 results from an estimated 4 matches for "createsdiv".

2014 Jul 01
2
[LLVMdev] Probable error in InstCombine
...t -1 or 1, depending on the optimization level. This appears to be the relevant code: InstCombineAddSub.cpp:1556 > // 0 - (X sdiv C) -> (X sdiv -C) > if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && > match(Op0, m_Zero())) > return BinaryOperator::CreateSDiv(X, ConstantExpr::getNeg(C)); - David Menendez
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...uction(unsigned int, llvm::Constant*, llvm::Constant*) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x88BD87: llvm::ConstantExpr::getTy(llvm::Type const*, unsigned int, llvm::Constant*, llvm::Constant*, unsigned int) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x423B2E: llvm::ConstantFolder::CreateSDiv(llvm::Constant*, llvm::Constant*) const (ConstantFolder.h:76) ==20504==    by 0x424D7C: llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateSDiv(llvm::Value*, llvm::Value*, llvm::Twine const&) (IRBuilder.h:394) ==20504==    by 0x42264F: vgen::Co...
2013 Apr 08
0
[LLVMdev] Integer divide by zero
On Sun, Apr 7, 2013 at 9:28 PM, Cameron McInally <cameron.mcinally at nyu.edu>wrote: > More productive (IMO) is to emit explicit guards against the undefined >> behavior in your language, much as -fsanitize does for undefined behavior >> in C++. Then work to build a mode where a specific target can take >> advantage of target specific trapping behaviors to emit these
2013 Apr 08
3
[LLVMdev] Integer divide by zero
Well put, Chandler! On Sun, Apr 7, 2013 at 6:23 PM, Chandler Carruth <chandlerc at google.com>wrote: > I think this entire conversation is going a bit off the rails. Let's try > to stay focused on the specific request, and why there (may) be problems > with it. > > On Sun, Apr 7, 2013 at 11:50 AM, Cameron McInally < > cameron.mcinally at nyu.edu> wrote: >