The existing code assumed fcmp to always be an Instruction, but it can also be a ConstExpr.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D115450  
[GlobalISel] Fix IRTranslator for constexpr fcmp ClosedPublic Authored by kschwarz on Dec 9 2021, 8:32 AM. 
Details Summary The existing code assumed fcmp to always be an Instruction, but it can also be a ConstExpr. 
Diff Detail 
 Event TimelineHerald added subscribers: kerbowa, hiraditya, rovka and 2 others.  ·  View Herald TranscriptDec 9 2021, 8:32 AM This revision is now accepted and ready to land.Dec 9 2021, 8:33 AM Closed by commit rGa34465372507: [GlobalISel] Fix IRTranslator for constexpr fcmp (authored by kschwarz).  ·  Explain WhyDec 9 2021, 11:49 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 393179 llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
 llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-constantexpr.ll
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||