[llvm-dev] Fixing some StackProtector issues

via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 23 04:49:56 PDT 2019


>> On second thought, no. This change was to allow running the StackProtector 
>> pass from opt; but it's a CodeGen pass, not a Transform, and it can already 
>> be run in isolation by llc. So this isn't needed.
>
> Not sure what you mean. llc can’t be used for running IR->IR passes
>
> -Matt

Not sure why you think that.  llc can run any CodeGen pass.  See other
examples of llc used to run StackProtector:
  test/CodeGen/ARM/fpoffset_overflow.mir
  test/CodeGen/X86/vector-truncate-combine.ll
  test/CodeGen/X86/stack-protector-remarks.ll

--paulr



More information about the llvm-dev mailing list