[llvm] 0564d06 - [SDAG] Transfer gep nusw/nuw to SDAG

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 00:38:51 PDT 2024


Author: Nikita Popov
Date: 2024-08-07T09:26:10+02:00
New Revision: 0564d0665b302d1c7861e03d2995612f46613a0f

URL: https://github.com/llvm/llvm-project/commit/0564d0665b302d1c7861e03d2995612f46613a0f
DIFF: https://github.com/llvm/llvm-project/commit/0564d0665b302d1c7861e03d2995612f46613a0f.diff

LOG: [SDAG] Transfer gep nusw/nuw to SDAG

The resulting add is nuw if either the gep was nuw or it was
nusw+nneg. Previously only inbounds+nneg was handled.

Test via wasm load offsets, which seems to most directly expose
these SDAG flags.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    llvm/test/CodeGen/WebAssembly/offset.ll

Removed: 
    


################################################################################error: too big or took too long to generate

        


More information about the llvm-commits mailing list