mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Insert missing coherency in comment. Add a quick check for hardware
divide support also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43b62beb4c
commit
1127c720ed
@ -1145,8 +1145,12 @@ bool ARMFastISel::SelectSDiv(const Instruction *I) {
|
||||
if (!isTypeLegal(Ty, VT))
|
||||
return false;
|
||||
|
||||
// If we have integer div support we should have gotten already, emit a
|
||||
// libcall.
|
||||
// If we have integer div support we should have selected this automagically.
|
||||
// In case we have a real miss go ahead and return false and we'll pick
|
||||
// it up later.
|
||||
if (Subtarget->hasDivide()) return false;
|
||||
|
||||
// Otherwise emit a libcall.
|
||||
RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL;
|
||||
if (VT == MVT::i16)
|
||||
LC = RTLIB::SDIV_I16;
|
||||
|
Loading…
x
Reference in New Issue
Block a user