[all-commits] [llvm/llvm-project] 3a8d7f: [SimplifyCFG] teach simplifycfg not to introduce p...

Jameson Nash via All-commits all-commits at lists.llvm.org
Mon Aug 15 12:12:40 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a8d7fe20199aa73590d7a240ac9376624203b7f
  Author: Jameson Nash <vtjnash at gmail.com>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/Transforms/SimplifyCFG/nonintegral.ll

  Log Message:
  [SimplifyCFG] teach simplifycfg not to introduce ptrtoint for NI pointers

SimplifyCFG expects to be able to cast both sides to an int, if either side can be case to an int, but this is not desirable or legal, in general, per D104547.

Spotted in https://github.com/JuliaLang/julia/issues/45702

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D128670

More information about the All-commits mailing list